|

楼主 |
发表于 2019-1-19 08:49:28
|
显示全部楼层
gitadmin@lizhong:~$ ping www.baidu.com
ping: www.baidu.com: Name or service not known
gitadmin@lizhong:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 ens33
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
192.168.2.1 0.0.0.0 255.255.255.255 UH 100 0 0 ens33
gitadmin@lizhong:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
^C
--- 192.168.2.1 ping statistics ---
77 packets transmitted, 0 received, 100% packet loss, time 77747ms
gitadmin@lizhong:~$ ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
^C
--- 114.114.114.114 ping statistics ---
22 packets transmitted, 0 received, 100% packet loss, time 21498ms
192.168.2.1是路由器的地址
|
|