Objective: To learn the usage of Linux command Ping,traceroute
Usage of 1:ping:
Mans Ping
Ping: Determine if a host is responding
linux-8o9i:~ #Ping-C4 119.29.29.29PING119.29.29.29(119.29.29.29) About( -) bytes of data. -Bytes from119.29.29.29: icmp_seq=1Ttl=Wuyi Time=101Ms -Bytes from119.29.29.29: icmp_seq=2Ttl=Wuyi Time=75.0Ms -Bytes from119.29.29.29: icmp_seq=3Ttl=Wuyi Time=74.4Ms -Bytes from119.29.29.29: icmp_seq=4Ttl=Wuyi Time=74.2Ms---119.29.29.29 PingStatistics---4Packets Transmitted,4Received0% packet loss, Time3004msrtt min/avg/max/mdev =74.249/81.303/101.454/11.638Ms
64bytes: Number of ICMP packet sizes transmitted
Icmp_seq=1: Number of detections
TTL: Time to live, each route passed, the value minus 1, the initial value is: 64
Time: response times, the smaller the number, the better the network online condition
ping-sending an ICMP echo request to a network host
-C: Counter
-B (next to broadcast IP, query which active hosts are in a domain)
Usage of 2:traceroute:
Mans Traceroute
Traceroute: Tracing routes (nodes)
-N: Not resolved, only IP is displayed
119.29. 29.29
Often, many firewalls and hosts on the network will tracetoute the right to pass, so it will show *
Ping and traceroute usage