R1pingR2
<R1>ping 192.168.1.2
PING 192.168.1.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=240 ms
Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=100 ms
Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=80 ms
Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 192.168.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/104/240 ms
R1pingR5
<R1>ping 192.168.1.3
PING 192.168.1.3: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.3: bytes=56 Sequence=1 ttl=255 time=250 ms
Reply from 192.168.1.3: bytes=56 Sequence=2 ttl=255 time=50 ms
Reply from 192.168.1.3: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.1.3: bytes=56 Sequence=4 ttl=255 time=50 ms
Reply from 192.168.1.3: bytes=56 Sequence=5 ttl=255 time=70 ms
--- 192.168.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/90/250 ms
R2与R3之间的通信
<R2>ping 192.168.2.2
PING 192.168.2.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=255 time=200 ms
Reply from 192.168.2.2: bytes=56 Sequence=2 ttl=255 time=50 ms
Reply from 192.168.2.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.2.2: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.2.2: bytes=56 Sequence=5 ttl=255 time=50 ms
--- 192.168.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/72/200 ms
R3与R2和R4之间的通信
R3pingR1
<R3>ping 192.168.2.1
PING 192.168.2.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=255 time=120 ms
Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=255 time=40 ms
--- 192.168.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/52/120 ms
R3pingR4
<R3>ping 192.168.3.1
PING 192.168.3.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.3.1: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 192.168.3.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.3.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 192.168.3.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 192.168.3.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/4/20 ms
R4与R3和R5之间的通信
R4pingR3
<R4>ping 192.168.3.1
PING 192.168.3.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.3.1: bytes=56 Sequence=1 ttl=255 time=230 ms
Reply from 192.168.3.1: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 192.168.3.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.3.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.3.1: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/66/230 ms
R4pingR5
<R4>ping 192.168.4.2
PING 192.168.4.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.4.2: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 192.168.4.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.4.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.4.2: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.4.2: bytes=56 Sequence=5 ttl=255 time=60 ms
--- 192.168.4.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/50/90 ms
R5与R4之间的通信
<R5>ping 192.168.4.1
PING 192.168.4.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.4.1: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 192.168.4.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=3 ttl=255 time=50 ms
Reply from 192.168.4.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.4.1: bytes=56 Sequence=5 ttl=255 time=340 ms
--- 192.168.4.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/96/340 ms
[R1]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 3 Routes : 4
RIP routing table status : <Active>
Destinations : 3 Routes : 4
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.2.0/24 RIP 100 1 D 192.168.1.2 GigabitEthernet
0/0/0
192.168.3.0/24 RIP 100 2 D 192.168.1.2 GigabitEthernet
0/0/0
RIP 100 2 D 192.168.1.3 GigabitEthernet
0/0/0
192.168.4.0/24 RIP 100 1 D 192.168.1.3 GigabitEthernet
0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
R2路由
[R2]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 2 Routes : 2
RIP routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.3.0/24 RIP 100 1 D 192.168.2.2 GigabitEthernet
0/0/1
192.168.4.0/24 RIP 100 1 D 192.168.1.3 GigabitEthernet
0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
R3路由表
[R3]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 2 Routes : 2
RIP routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.1.0/24 RIP 100 1 D 192.168.2.1 GigabitEthernet
0/0/1
192.168.4.0/24 RIP 100 1 D 192.168.3.2 GigabitEthernet
0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
R4路由表
[R4]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 2 Routes : 2
RIP routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.1.0/24 RIP 100 1 D 192.168.4.2 GigabitEthernet
0/0/0
192.168.2.0/24 RIP 100 1 D 192.168.3.1 GigabitEthernet
0/0/1
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
R5路由表
[R5]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
Destinations : 2 Routes : 2
RIP routing table status : <Active>
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.2.0/24 RIP 100 1 D 192.168.1.2 GigabitEthernet
0/0/1
192.168.3.0/24 RIP 100 1 D 192.168.4.1 GigabitEthernet
0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
第五步:测连通性
R1和R4之间连通性
[R1]ping 192.168.3.2
PING 192.168.3.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.3.2: bytes=56 Sequence=1 ttl=254 time=200 ms
Reply from 192.168.3.2: bytes=56 Sequence=2 ttl=254 time=110 ms
Reply from 192.168.3.2: bytes=56 Sequence=3 ttl=254 time=40 ms
Reply from 192.168.3.2: bytes=56 Sequence=4 ttl=254 time=70 ms
Reply from 192.168.3.2: bytes=56 Sequence=5 ttl=254 time=90 ms
--- 192.168.3.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/102/200 ms