虚拟机设置位nat方式网络不能设置静态ip地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
servers network restart
or
ifup eth0
dhclient
ok
其他相关命令
lspci | grep 'Eth'
ifup eth0
mii-tool
ifconfig eth0 up
ifconfig eth0 xxx指定ip试试能否有效
system-config-network