配置固定IP
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="00:0C:29:44:A2:E9"
NM_CONTROLLED="yes"
ONBOOT="yes"
IPADDR=192.168.71.12
NETMASK=255.255.255.0
GATEWAY=192.168.71.2
DNS1=202.205.80.132
BOOTPROTO=static
保存退出
vim /etc/resolv.conf
添加一条DNS
nameserver 202.205.80.132
网关GATEWAY
NAT模式vmnet8作为网管
vmnet8的IP192.168.71.1
GATEWAY则为192.168.71.2