[root@localhost u-boot]# ping www.163.com
PING 1st.xdwscache.ourwebpic.com (113.207.0.65) 56(84) bytes of data.
From bogon (192.168.0.123) icmp_seq=2 Destination Host Unreachable
From bogon (192.168.0.123) icmp_seq=3 Destination Host Unreachable
From bogon (192.168.0.123) icmp_seq=4 Destination Host Unreachable
vmware网络配置中nat服务没有开启
问题:默认使用nat的网卡进行通信,没有使用桥接的网卡?
[root@localhost u-boot]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth1
default bogon 0.0.0.0 UG 0 0 0 eth1
[root@localhost u-boot]# ping www.163.com
PING 1st.xdwscache.ourwebpic.com (113.207.6.55) 56(84) bytes of data.
From bogon (192.168.0.123) icmp_seq=2 Destination Host Unreachable
From bogon (192.168.0.123) icmp_seq=3 Destination Host Unreachable
From bogon (192.168.0.123) icmp_seq=4 Destination Host Unreachable
From bogon (192.168.0.123) icmp_seq=6 Destination Host Unreachable
[root@localhost u-boot]# route add default gw 192.168.1.1
[root@localhost u-boot]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth1
default bogon 0.0.0.0 UG 0 0 0 eth0
default bogon 0.0.0.0 UG 0 0 0 eth1
[root@localhost u-boot]# ping www.163.com
PING 1st.xdwscache.ourwebpic.com (113.207.6.55) 56(84) bytes of data.
64 bytes from 113.207.6.55: icmp_seq=1 ttl=56 time=3.25 ms
64 bytes from 113.207.6.55: icmp_seq=2 ttl=56 time=2.54 ms
64 bytes from 113.207.6.55: icmp_seq=3 ttl=56 time=2.68 ms
64 bytes from 113.207.6.55: icmp_seq=4 ttl=56 time=1.62 ms
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。