The virtual machine ping can not connect to the host computer on the external network.

virtual machine system centos7,
ifconfig output

eth0: flags=4163 < UP,BROADCAST,RUNNING,MULTICAST > mtu 1500

    inet 192.168.80.131  netmask 255.255.255.0  broadcast 192.168.80.255
    inet6 fe80::1709:36a9:2bcb:77fc  prefixlen 64  scopeid 0x20<link>
    inet6 fd15:4ba5:5a2b:1008:9d2b:16fb:9e41:1019  prefixlen 64  scopeid 0x0<global>
    inet6 fd15:4ba5:5a2b:1008:e3e7:e7d:3745:63e2  prefixlen 64  scopeid 0x0<global>
    ether 00:0c:29:95:f5:aa  txqueuelen 1000  (Ethernet)
    RX packets 2127  bytes 255963 (249.9 KiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 2095  bytes 213918 (208.9 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73 < UP,LOOPBACK,RUNNING > mtu 65536

    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 1000  (Local Loopback)
    RX packets 234  bytes 17140 (16.7 KiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 234  bytes 17140 (16.7 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099 < UP,BROADCAST,MULTICAST > mtu 1500

    inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
    ether 52:54:00:a5:09:26  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

traceroute www.baidu.com output

traceroute to www.baidu.com (180.97.33.107), 30 hops max 60 byte packets
1 gateway (192.168.80.2) 0.353 ms 0.226 ms 0.211 ms
2 *
3 *
4 *
5 *
6
*
7 / em > * br > 8 *
9 *
10 *
11 * 12
< / br > * < em 13

win7 tracert www.baidu.com of the same domain

Why? it feels so strange.
I think the ifconfig output is wrong.
vim / etc/sysconfig/network-scripts/ifcfg-eth0

TYPE= "Ethernet"
PROXY_METHOD= "none"
BROWSER_ONLY= "no"
BOOTPROTO= "static"
DEFROUTE= "yes"
IPV4_FAILURE_FATAL= "no"
IPV6INIT= "yes"
IPV6_AUTOCONF= "yes"
IPV6_DEFROUTE= "yes"
IPV6_FAILURE_FATAL= "no"
IPV6_ADDR_GEN_MODE= "stable-privacy"
NAME= "eth0"
UUID= "UUID=-UUID="
4d1f35b4 < 4d62 > 4d1f35b4 < > 4d1f35b4 < >

"/ etc/sysconfig/network-scripts/ifcfg-eth0" 22L, 446C 20pm 1 All

there is nothing wrong with it.
/ etc/resolv.conf file is locked,

grep hosts / etc/nsswitch.conf

hosts: files dns myhostname

Thank you all


add a next hop route.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3cf83-43434.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3cf83-43434.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?