本文共 7081 字,大约阅读时间需要 23 分钟。
AR1
[H3C]sysname AR2[AR1]inte[AR1]interface g[AR1]interface GigabitEthernet 0/0[AR1-GigabitEthernet0/0]ip address 10.0.13.1 24[AR1-GigabitEthernet0/0]qui[AR1-GigabitEthernet0/0]quit[AR1]inte[AR1]interface loo[AR1]interface LoopBack 0[AR1-LoopBack0]ip address 10.0.1.1 24[AR1-LoopBack0]qui[AR1-LoopBack0]quit[AR1]AR3
<H3C>%Sep 28 15:06:55:005 2018 H3C SHELL/5/SHELL_LOGIN: Console logged in from con0.sysSystem View: return to User View with Ctrl+Z.[H3C]sysname AR3[AR3]inte[AR3]interface g[AR3]interface GigabitEthernet 0/0[AR3-GigabitEthernet0/0]ip address 10.0.12.3 24[AR3-GigabitEthernet0/0]qui[AR3-GigabitEthernet0/0]quit[AR3]inte[AR3]interface loo[AR3]interface LoopBack 0[AR3-LoopBack0]ip address 10.0.3.3 24[AR3-LoopBack0]qui[AR3-LoopBack0]quit[AR3]测试AR2和AR1的连通性
[AR2]ping 10.0.13.2Ping 10.0.13.2 (10.0.13.2): 56 data bytes, press CTRL_C to break56 bytes from 10.0.13.2: icmp_seq=0 ttl=255 time=1.000 ms56 bytes from 10.0.13.2: icmp_seq=1 ttl=255 time=1.000 ms56 bytes from 10.0.13.2: icmp_seq=2 ttl=255 time=1.000 ms56 bytes from 10.0.13.2: icmp_seq=3 ttl=255 time=1.000 ms56 bytes from 10.0.13.2: icmp_seq=4 ttl=255 time=0.000 ms--- Ping statistics for 10.0.13.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet lossround-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms[AR2]%Sep 28 15:09:48:446 2018 AR2 PING/6/PING_STATISTICS: Ping statistics for 10.0.13.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.800/1.000/0.400 ms.测试AR1和AR3的连通性
[AR3]ping 10.0.12.2Ping 10.0.12.2 (10.0.12.2): 56 data bytes, press CTRL_C to break56 bytes from 10.0.12.2: icmp_seq=0 ttl=255 time=1.000 ms56 bytes from 10.0.12.2: icmp_seq=1 ttl=255 time=0.000 ms56 bytes from 10.0.12.2: icmp_seq=2 ttl=255 time=0.000 ms56 bytes from 10.0.12.2: icmp_seq=3 ttl=255 time=0.000 ms56 bytes from 10.0.12.2: icmp_seq=4 ttl=255 time=0.000 ms--- Ping statistics for 10.0.12.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet lossround-trip min/avg/max/std-dev = 0.000/0.200/1.000/0.400 ms[AR3]%Sep 28 15:11:25:882 2018 AR3 PING/6/PING_STATISTICS: Ping statistics for 10.0.12.2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.000/0.200/1.000/0.400 ms.AR1
[AR1]rip[AR1-rip-1]netw[AR1-rip-1]network 10.0.0.0[AR1-rip-1]AR2
[AR2]rip[AR2-rip-1]net[AR2-rip-1]network 10.0.0.0[AR2-rip-1]AR3
[AR3]rip[AR3-rip-1]net[AR3-rip-1]network 10.0.0.0[AR3-rip-1]AR1
[AR1]display ip routing-table
Destinations : 19 Routes : 19
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop010.0.1.0/24 Direct 0 0 10.0.1.1 Loop010.0.1.0/32 Direct 0 0 10.0.1.1 Loop010.0.1.1/32 Direct 0 0 127.0.0.1 InLoop010.0.1.255/32 Direct 0 0 10.0.1.1 Loop010.0.2.0/24 RIP 100 1 10.0.13.2 GE0/010.0.3.0/24 RIP 100 2 10.0.13.2 GE0/010.0.12.0/24 RIP 100 1 10.0.13.2 GE0/010.0.13.0/24 Direct 0 0 10.0.13.1 GE0/010.0.13.0/32 Direct 0 0 10.0.13.1 GE0/010.0.13.1/32 Direct 0 0 127.0.0.1 InLoop010.0.13.255/32 Direct 0 0 10.0.13.1 GE0/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0AR2
[AR2]display ip routing-tableDestinations : 22 Routes : 22
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop010.0.1.0/24 RIP 100 1 10.0.13.1 GE0/010.0.2.0/24 Direct 0 0 10.0.2.2 Loop010.0.2.0/32 Direct 0 0 10.0.2.2 Loop010.0.2.2/32 Direct 0 0 127.0.0.1 InLoop010.0.2.255/32 Direct 0 0 10.0.2.2 Loop010.0.3.0/24 RIP 100 1 10.0.12.3 GE0/110.0.12.0/24 Direct 0 0 10.0.12.2 GE0/110.0.12.0/32 Direct 0 0 10.0.12.2 GE0/110.0.12.2/32 Direct 0 0 127.0.0.1 InLoop010.0.12.255/32 Direct 0 0 10.0.12.2 GE0/110.0.13.0/24 Direct 0 0 10.0.13.2 GE0/010.0.13.0/32 Direct 0 0 10.0.13.2 GE0/010.0.13.2/32 Direct 0 0 127.0.0.1 InLoop010.0.13.255/32 Direct 0 0 10.0.13.2 GE0/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0AR3
[AR3]display ip routing-tableDestinations : 19 Routes : 19
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop010.0.1.0/24 RIP 100 2 10.0.12.2 GE0/010.0.2.0/24 RIP 100 1 10.0.12.2 GE0/010.0.3.0/24 Direct 0 0 10.0.3.3 Loop010.0.3.0/32 Direct 0 0 10.0.3.3 Loop010.0.3.3/32 Direct 0 0 127.0.0.1 InLoop010.0.3.255/32 Direct 0 0 10.0.3.3 Loop010.0.12.0/24 Direct 0 0 10.0.12.3 GE0/010.0.12.0/32 Direct 0 0 10.0.12.3 GE0/010.0.12.3/32 Direct 0 0 127.0.0.1 InLoop010.0.12.255/32 Direct 0 0 10.0.12.3 GE0/010.0.13.0/24 RIP 100 1 10.0.12.2 GE0/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0AR1
[AR1]ping 10.0.12.3Ping 10.0.12.3 (10.0.12.3): 56 data bytes, press CTRL_C to break56 bytes from 10.0.12.3: icmp_seq=0 ttl=254 time=1.000 ms56 bytes from 10.0.12.3: icmp_seq=1 ttl=254 time=1.000 ms56 bytes from 10.0.12.3: icmp_seq=2 ttl=254 time=1.000 ms56 bytes from 10.0.12.3: icmp_seq=3 ttl=254 time=1.000 ms56 bytes from 10.0.12.3: icmp_seq=4 ttl=254 time=1.000 ms--- Ping statistics for 10.0.12.3 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet lossround-trip min/avg/max/std-dev = 1.000/1.000/1.000/0.000 ms[AR1]%Sep 28 15:21:16:210 2018 AR1 PING/6/PING_STATISTICS: Ping statistics for 10.0.12.3: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/1.000/1.000/0.000 ms.<AR1>debugging rip 1
<AR1>dis<AR1>display de<AR1>display debuggingRIP 1, timer debugging is onRIP 1, event debugging is onRIP 1, brief debugging is onRIP 1, sent packet debugging is onRIP 1, received packet debugging is onRIP 1, interface GigabitEthernet0/0 sent and received packet debugging is onRIP 1, interface LoopBack0 sent and received packet debugging is on<AR1>转载于:https://blog.51cto.com/13956268/2287242