vi /etc/sysconfig/network-scripts/ifcfg-eth0
动态:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29:A2:5C:3F
ONBOOT=yes
TYPE=Ethernet
动态:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:0C:29:A2:5C:3F
ONBOOT=yes
TYPE=Ethernet
静态:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.124
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=00:0C:29:A2:5C:3F
ONBOOT=yes
TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.124
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=00:0C:29:A2:5C:3F
ONBOOT=yes
TYPE=Ethernet
重启,使生效
service network restart
[@more@]
service network restart
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/729024/viewspace-1033613/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/729024/viewspace-1033613/