要求
配置
R1
Public routing table : OSPF Destinations : 4 Routes : 4 OSPF routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 O_ASE 150 1 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.8/30 OSPF 10 2 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.12/30 OSPF 10 3 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.33/32 OSPF 10 1 D 192.168.1.2 GigabitEthernet 0/0/0 OSPF routing table status : <Inactive> Destinations : 0 Routes : 0
R2
Public routing table : OSPF Destinations : 4 Routes : 4 OSPF routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 O_ASE 150 1 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.8/30 OSPF 10 2 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.12/30 OSPF 10 3 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.1.17/32 OSPF 10 1 D 192.168.1.1 GigabitEthernet 0/0/0 OSPF routing table status : <Inactive> Destinations : 0 Routes : 0
R3
Public routing table : OSPF Destinations : 4 Routes : 4 OSPF routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 O_ASE 150 1 D 192.168.1.10 GigabitEthernet 0/0/1 192.168.1.12/30 OSPF 10 2 D 192.168.1.10 GigabitEthernet 0/0/1 192.168.1.17/32 OSPF 10 1 D 192.168.1.1 GigabitEthernet 0/0/0 192.168.1.33/32 OSPF 10 1 D 192.168.1.2 GigabitEthernet 0/0/0 OSPF routing table status : <Inactive> Destinations : 0 Routes : 0
R4
Public routing table : OSPF Destinations : 4 Routes : 4 OSPF routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 0.0.0.0/0 O_ASE 150 1 D 192.168.1.14 GigabitEthernet 0/0/1 192.168.1.0/29 OSPF 10 2 D 192.168.1.9 GigabitEthernet 0/0/0 192.168.1.17/32 OSPF 10 2 D 192.168.1.9 GigabitEthernet 0/0/0 192.168.1.33/32 OSPF 10 2 D 192.168.1.9 GigabitEthernet 0/0/0 OSPF routing table status : <Inactive> Destinations : 0 Routes : 0
R5
Public routing table : OSPF Destinations : 4 Routes : 4 OSPF routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 192.168.1.0/29 OSPF 10 3 D 192.168.1.13 GigabitEthernet 0/0/0 192.168.1.8/30 OSPF 10 2 D 192.168.1.13 GigabitEthernet 0/0/0 192.168.1.17/32 OSPF 10 3 D 192.168.1.13 GigabitEthernet 0/0/0 192.168.1.33/32 OSPF 10 3 D 192.168.1.13 GigabitEthernet 0/0/0 OSPF routing table status : <Inactive> Destinations : 0 Routes : 0
全网可达
<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=40 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=40 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=50 ms --- 192.168.1.3 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 40/46/50 ms <r1>ping 192.168.1.9 PING 192.168.1.9: 56 data bytes, press CTRL_C to break Reply from 192.168.1.9: bytes=56 Sequence=1 ttl=255 time=40 ms Reply from 192.168.1.9: bytes=56 Sequence=2 ttl=255 time=40 ms Reply from 192.168.1.9: bytes=56 Sequence=3 ttl=255 time=60 ms Reply from 192.168.1.9: bytes=56 Sequence=4 ttl=255 time=60 ms Reply from 192.168.1.9: bytes=56 Sequence=5 ttl=255 time=40 ms --- 192.168.1.9 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 40/48/60 ms <r1>ping 192.168.1.13 PING 192.168.1.13: 56 data bytes, press CTRL_C to break Reply from 192.168.1.13: bytes=56 Sequence=1 ttl=254 time=50 ms Reply from 192.168.1.13: bytes=56 Sequence=2 ttl=254 time=80 ms Reply from 192.168.1.13: bytes=56 Sequence=3 ttl=254 time=40 ms Reply from 192.168.1.13: bytes=56 Sequence=4 ttl=254 time=30 ms Reply from 192.168.1.13: bytes=56 Sequence=5 ttl=254 time=30 ms --- 192.168.1.13 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 30/46/80 ms <r1>ping 192.168.1.49 PING 192.168.1.49: 56 data bytes, press CTRL_C to break Reply from 192.168.1.49: bytes=56 Sequence=1 ttl=253 time=50 ms Reply from 192.168.1.49: bytes=56 Sequence=2 ttl=253 time=50 ms Reply from 192.168.1.49: bytes=56 Sequence=3 ttl=253 time=50 ms Reply from 192.168.1.49: bytes=56 Sequence=4 ttl=253 time=50 ms Reply from 192.168.1.49: bytes=56 Sequence=5 ttl=253 time=50 ms --- 192.168.1.49 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 50/50/50 ms