前言
本文將說明 Extreme Summit 400-24T Switch,用來測試網路連通狀態的 ping 指令,以及用來測試路由狀態的 traceroute 指令。Ping - 測試網路連通狀態
Ping 主要用來測試網路連通的狀態,使用 ICMP Protocol 工作於 Network Layer。Summit1:2# ping 168.95.1.1
Ping(ICMP) 168.95.1.1: 4 packets, 8 data bytes, interval= 1.
16 bytes from 168.95.1.1: icmp_seq=0 ttl=246 time=0 ms
16 bytes from 168.95.1.1: icmp_seq=1 ttl=246 time=0 ms
16 bytes from 168.95.1.1: icmp_seq=2 ttl=246 time=0 ms
16 bytes from 168.95.1.1: icmp_seq=3 ttl=246 time=0 ms
--- 168.95.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
當然您可以使用更多的參數來測試你想知道的網路狀態,參數如下:
ping {udp} {continuous} {size <start_size> {- <end_size>}} [<ip_address> | <hostname>] {from <src_address> | with record-route | from <src_ipaddress> with record-route}
Traceroute - 測試路由狀態
Traceroute 指令來測試網路路由狀態。Summit1:2# traceroute 168.95.1.1
traceroute to 168.95.1.1, 30 hops max
1 203.133.35.62 0 ms 0 ms 0 ms
2 203.133.92.89 0 ms 0 ms 0 ms
3 203.187.9.54 0 ms 0 ms 0 ms
4 * * *
5 * * *
6 * * *
7 210.65.161.126 0 ms 0 ms 0 ms
8 211.22.32.218 0 ms 0 ms 0 ms
9 211.22.35.185 0 ms 0 ms 0 ms
10 168.95.1.61 0 ms 0 ms 0 ms
當然您可以使用更多的參數來測試你想知道的網路路由狀態,參數如下:
traceroute [<ip_address> | <hostname>] {from <src_ipaddress>} {ttl <TTL>} {port <port>}