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
改IPADDR=后面的值..........
还可用:ifconfig eth0 196.186.7.10
阅读(466) | 评论(0) | 转发(0) |