VMware连接方式为bridge
编辑etc/sysconfig/network-scripts/ifcfg-etho#etho连接
DEVICE="eth0"#网卡设备名
BOOTPROTO=noneIPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"# 启动激活
TYPE="Ethernet"#类型
UUID="f42c4797-1b59-4f92-8dc6-ecffe7bb7814"
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME="System eth0"
IPADDR=192.168.1.223# ip
PREFIX=24
GATEWAY=192.168.1.1# 网关
DNS1=221.130.13.133# dns
DOMAIN=192.168.1.223# 个人域名
HWADDR=00:0C:29:98:93:53# 设备地址
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
LAST_CONNECT=1355209092