wwwbaidu
问题:
[root@localhost104 softwares]# ping https://www.baidu.com
ping: https://www.baidu.com: Name or service not known
没有默认的网关,需要添加
[root@localhost104 softwares]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 ens33
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens33
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
[root@localhost104 softwares]# cat /etc/resolv.conf
# generated by NetworkManager
nameserver 8.8.8.8
nameserver 114.114.114.114
search localhost104
[root@localhost104 softwares]# grep GATEWAY /etc/sysconfig/network-scripts/ifcfg*
/etc/sysconfig/network-scripts/ifcfg-ens33:GATEWAY=192.168.0.1
[root@localhost104 softwares]# grep hosts /etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns myhostname
[root@localhost104 softwares]# route add default gw 192.168.0.1
[root@localhost104 softwares]# ping www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=55 time=7.04 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=55 time=8.16 ms
^Z
[5]+ Stopped ping www.baidu.com
[root@localhost104 softwares]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 ens33
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens33
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
相关阅读
1.下载TCPing2.把其中的exe文件放在windows/system32下3.打开cmd,tcping -s -t [ip] [port]
ping ip主机提示Destination host unreachable问题解
ping 出现destination host unreachable的问题一、问题一:虚拟机和主机互ping不通安装了虚拟机,以太网选的是默认的桥接,可安装完
以下图为例: 1、rtt (Round-TripTime)这个值就是数据包在源和监控点一个来回所需要用的时间,是判断网络运行状况的一个重要的参数。
TCP/IP详解05-网络层:ICMP协议、Ping和Traceroute
TCP/IP详解05-网络层:ICMP协议、Ping和Traceroute TCP/IP详解05-网络层:ICMP协议、Ping和Traceroute 1. ICMP:Internet控制报文协
smokeping网络监控一、smokeping介绍我们在选择机房的时候,如何知道这个机房的网络情况,这个时候就要用到网络监控软件:smokeping