标签:
由于我的centos是采用克隆出来的 所以先删掉eth1 网卡
vi /etc/udev/rules.d/70-persistent-net.rules
修改正确网卡地址 配置正确IP
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet UUID=830ca935-8ddd-40a7-92cc-3bb957930242 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none HWADDR=00:0C:29:3E:23:d2 IPADDR=192.168.207.131 PREFIX=24 GATEWAY=192.168.207.2 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0"
vi /etc/resolv.conf
domain localdomain
seatch localdomain
nameserver 192.168.207.2
标签:
原文地址:http://www.cnblogs.com/sunshinexb/p/4772988.html