打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
虚拟机PING Destination Host Unreachable
[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
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Linux下的ping6
linux命令之ping命令
查看Linux服务器的网络连接
常备:让KVM虚拟机支持VLAN功能配置详解
“Ping”的幕后过程
PING命令入门详解 - 〖软件下载交流〗 - MACD股市技术分析俱乐部 - bbs.m...
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服