VMware虚拟机无法访问外网

1。环境条件

clip_image001

clip_image002

2。VMware检查

clip_image003

clip_image004

clip_image005

clip_image006

3。虚拟机检查

1) vi /etc/sysconfig/network

-----------------------------

NETWORKING=yes

HOSTNAME=centos.smartmap

GATEWAY=192.168.163.1

clip_image007

2)vi /etc/sysconfig/network-scripts/ifcfg-eth0

----------------------------------------------------

DEVICE="eth0"

BOOTPROTO=static

NM_CONTROLLED=yes

IPADDR=192.168.163.133

NETMASK=255.255.255.0

GATEWAY=192.168.163.1

BROADCAST=192.168.163.255

ONBOOT=yes

TYPE="Ethernet"

# UUID="6577a568-4ede-4a61-8c9d-d7f295ff3f8e"

# DEFROUTE=yes

IPV4_FAILURE_FATAL=yes

IPV6INIT=no

NAME="System eth0"

HWADDR=00:0C:29:DB:E1:F5

# PEERDNS=yes

# PEERROUTES=yes

DNS1=192.168.163.1

clip_image008

3) vi /etc/hosts

----------------------------------------------------

127.0.0.1   localhost localhost.localdomain

192.168.163.133 centos centos.smartmap

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

clip_image009

4)  vi /etc/resolv.conf

----------------------------------------------------

search smartmap

nameserver 192.168.163.1

clip_image010

4。清理

rm -rf /etc/udev/rules.d/*.rules

posted @ 2016-08-14 14:02  ParamousGIS  阅读(736)  评论(0编辑  收藏  举报