LINUX VMware 上的了外网 DNS可用 可Ping真机和网关 就是Ping不通外网
用的是NAT VMnet8的 IPV4是192.168.137.1
所以NAT配的网关是192.168.137.2 NAT采用的是manual
ifconfig
se1012@ubuntu:~/Desktop/ping$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:29:84:cb:6f
inet addr:192.168.137.3 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe84:cb6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20227 errors:0 dropped:0 overruns:0 frame:0
TX packets:9134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10610901 (10.6 MB) TX bytes:951134 (951.1 KB)
Interrupt:19 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4087 errors:0 dropped:0 overruns:0 frame:0
TX packets:4087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:303242 (303.2 KB) TX bytes:303242 (303.2 KB)
route
se1012@ubuntu:~/Desktop/ping$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default bogon 0.0.0.0 UG 0 0 0 eth0