1. 程式人生 > >centos6安裝時網路配置

centos6安裝時網路配置

切換到root使用者:  vim /etc/sysconfig/network-scripts/ifcfg-eth0

修改內容:
DEVICE=eth0
HWADDR=00:0C:29:CB:33:36
TYPE=Ethernet
UUID=ffc311dc-0057-4feb-819e-9e44a04b87d7
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
#IPADDR=192.168.210.2
#NETMASK=255.255.255.0
#GATEWAY=192.168.210.1
#DNS1=202.106.0.20(DNS好像不填也行)
IPV6INIT=no
USERCTL=no

service network restart