分享

虚拟机PING Destination Host Unreachable

 戴维图书馆 2016-06-28
[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

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多