1.虚拟机配置NAT;
2.配置文件目录:
/etc/sysconfig/network-scripts/ifcfg-eth0
3.ifcfg-eth0内容:
DEVICE=eth0
HWADDR=00:0C:29:7D:39:95
TYPE=Ethernet
UUID=c52bf672-fcff-43d0-b3bc-09ab17708fb5
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.201.127
NETMASK=255.255.255.0
GATEWAY=192.168.201.1
原文地址:http://huijiechou.blog.51cto.com/7221732/1917565