首先修改
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:50:8D:7D:F9:44
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=172.16.106.155
USERCTL=no
PEERDNS=yes
GATEWAY=172.16.106.254
IPV6INIT=no
后重启网络服务/etc/init.d/network restart
哦,忘记设置dns了,修改/etc/resolv.conf 添加nameserver ip(你的dns ip)
试试wget
ok?
阅读(735) | 评论(0) | 转发(0) |