查看配置
R1#sh ip route ospf
O IA 192.168.28.0/24 [110/11] via 192.168.18.8, 00:22:02, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/12] via 192.168.18.8, 00:22:02, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/76] via 192.168.18.8, 00:22:02, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/65] via 192.168.145.4, 00:22:02, Serial1/1.145
20.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 20.1.0.0/22 is a summary, 00:22:02, Null0
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/65] via 192.168.145.5, 00:22:02, Serial1/1.145
O N1 192.168.57.0/24 [110/165] via 192.168.145.5, 00:20:45, Serial1/1.145
6.0.0.0/32 is subnetted, 1 subnets
O IA 6.6.6.6 [110/12] via 192.168.18.8, 00:22:02, FastEthernet0/1
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.2.0 [110/100] via 192.168.18.8, 00:22:02, FastEthernet0/1
8.0.0.0/32 is subnetted, 1 subnets
O 8.8.8.8 [110/11] via 192.168.18.8, 00:22:02, FastEthernet0/1
10.0.0.0/22 is subnetted, 1 subnets
O N1 10.1.0.0 [110/165] via 192.168.145.5, 00:20:45, Serial1/1.145
O IA 192.168.23.0/24 [110/75] via 192.168.18.8, 00:22:02, FastEthernet0/1
O IA 192.168.68.0/24 [110/11] via 192.168.18.8, 00:22:02, FastEthernet0/1
R2#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/12] via 192.168.28.8, 00:11:52, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 192.168.23.3, 00:11:52, Serial1/1
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/76] via 192.168.28.8, 00:11:52, FastEthernet0/1
O IA 192.168.145.0/24 [110/75] via 192.168.28.8, 00:11:52, FastEthernet0/1
20.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 20.1.1.1/32 [110/12] via 192.168.28.8, 00:11:52, FastEthernet0/1
O 20.1.0.0/22 is a summary, 00:11:52, Null0
O 20.1.2.1/32 [110/12] via 192.168.28.8, 00:11:52, FastEthernet0/1
O IA 20.1.3.1/32 [110/12] via 192.168.28.8, 00:11:52, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/76] via 192.168.28.8, 00:11:52, FastEthernet0/1
O E1 192.168.57.0/24 [110/176] via 192.168.28.8, 00:11:52, FastEthernet0/1
6.0.0.0/32 is subnetted, 1 subnets
O IA 6.6.6.6 [110/12] via 192.168.28.8, 00:11:52, FastEthernet0/1
172.16.0.0/24 is subnetted, 2 subnets
O E1 172.16.1.0 [110/111] via 192.168.28.8, 00:11:52, FastEthernet0/1
8.0.0.0/32 is subnetted, 1 subnets
O IA 8.8.8.8 [110/11] via 192.168.28.8, 00:11:52, FastEthernet0/1
10.0.0.0/22 is subnetted, 1 subnets
O E1 10.1.0.0 [110/176] via 192.168.28.8, 00:11:52, FastEthernet0/1
O IA 192.168.68.0/24 [110/11] via 192.168.28.8, 00:11:52, FastEthernet0/1
O IA 192.168.18.0/24 [110/11] via 192.168.28.8, 00:11:52, FastEthernet0/1
R2#
R3#sh ip route ospf
O*IA 0.0.0.0/0 [110/65] via 192.168.23.2, 00:12:02, Serial1/1
R4#sh ip route ospf
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.3.1 [110/65] via 192.168.145.1, 00:40:01, Serial1/1
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/65] via 192.168.145.5, 00:40:01, Serial1/1
O N1 192.168.57.0/24 [110/165] via 192.168.145.5, 00:21:41, Serial1/1
10.0.0.0/22 is subnetted, 1 subnets
O N1 10.1.0.0 [110/165] via 192.168.145.5, 00:21:41, Serial1/1
O*IA 0.0.0.0/0 [110/65] via 192.168.145.1, 00:22:53, Serial1/1
R5#sh ip route ospf
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/65] via 192.168.145.4, 00:21:56, Serial1/1
20.0.0.0/32 is subnetted, 1 subnets
O 20.1.3.1 [110/65] via 192.168.145.1, 00:21:56, Serial1/1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 10.1.0.0/22 is a summary, 00:21:55, Null0
O*IA 0.0.0.0/0 [110/65] via 192.168.145.1, 00:21:56, Serial1/1
R6# sh ip route ospf
O IA 192.168.12.0/24 [110/75] via 192.168.68.8, 00:12:15, FastEthernet0/1
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/12] via 192.168.68.8, 00:12:15, FastEthernet0/1
O IA 192.168.28.0/24 [110/11] via 192.168.68.8, 00:12:15, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/12] via 192.168.68.8, 00:12:15, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/76] via 192.168.68.8, 00:12:15, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/76] via 192.168.68.8, 00:12:15, FastEthernet0/1
O IA 192.168.145.0/24 [110/75] via 192.168.68.8, 00:12:15, FastEthernet0/1
20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
O IA 20.1.0.0/22 [110/12] via 192.168.68.8, 00:12:15, FastEthernet0/1
O IA 20.1.3.1/32 [110/12] via 192.168.68.8, 00:12:15, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/76] via 192.168.68.8, 00:12:15, FastEthernet0/1
8.0.0.0/32 is subnetted, 1 subnets
O IA 8.8.8.8 [110/11] via 192.168.68.8, 00:12:15, FastEthernet0/1
O IA 192.168.23.0/24 [110/75] via 192.168.68.8, 00:12:15, FastEthernet0/1
O IA 192.168.18.0/24 [110/11] via 192.168.68.8, 00:12:15, FastEthernet0/1
O*IA 0.0.0.0/0 [110/11] via 192.168.68.8, 00:47:51, FastEthernet0/1
R7#sh ip route rip
4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [120/5] via 192.168.57.5, 00:00:15, FastEthernet0/5
R 192.168.145.0/24 [120/5] via 192.168.57.5, 00:00:15, FastEthernet0/5
20.0.0.0/32 is subnetted, 1 subnets
R 20.1.3.1 [120/5] via 192.168.57.5, 00:00:15, FastEthernet0/5
5.0.0.0/32 is subnetted, 1 subnets
R 5.5.5.5 [120/5] via 192.168.57.5, 00:00:15, FastEthernet0/5
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
R 10.1.0.0/22 [120/5] via 192.168.57.5, 00:00:15, FastEthernet0/5
R* 0.0.0.0/0 [120/1] via 192.168.57.5, 00:00:06, FastEthernet0/5
R8#sh ip route ospf
O 192.168.12.0/24 [110/65] via 192.168.28.2, 00:12:48, FastEthernet0/2
[110/65] via 192.168.18.1, 00:12:48, FastEthernet0/1
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 192.168.18.1, 00:12:48, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 192.168.28.2, 00:12:48, FastEthernet0/2
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/66] via 192.168.28.2, 00:12:48, FastEthernet0/2
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/66] via 192.168.18.1, 00:12:48, FastEthernet0/1
O IA 192.168.145.0/24 [110/65] via 192.168.18.1, 00:12:48, FastEthernet0/1
20.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 20.1.1.1/32 [110/2] via 192.168.18.1, 00:12:48, FastEthernet0/1
O 20.1.0.0/22 is a summary, 00:12:48, Null0
O 20.1.2.1/32 [110/2] via 192.168.18.1, 00:12:48, FastEthernet0/1
O IA 20.1.3.1/32 [110/2] via 192.168.18.1, 00:12:48, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/66] via 192.168.18.1, 00:12:48, FastEthernet0/1
O E1 192.168.57.0/24 [110/166] via 192.168.18.1, 00:12:48, FastEthernet0/1
6.0.0.0/32 is subnetted, 1 subnets
O 6.6.6.6 [110/2] via 192.168.68.6, 00:12:48, FastEthernet0/6
172.16.0.0/24 is subnetted, 2 subnets
O E1 172.16.1.0 [110/101] via 192.168.18.1, 00:12:48, FastEthernet0/1
O E2 172.16.2.0 [110/100] via 192.168.28.2, 00:12:48, FastEthernet0/2
10.0.0.0/22 is subnetted, 1 subnets
O E1 10.1.0.0 [110/166] via 192.168.18.1, 00:12:48, FastEthernet0/1
O IA 192.168.23.0/24 [110/65] via 192.168.28.2, 00:12:48, FastEthernet0/2
R1#sh ip ospf database
Type-7 AS External Link States (Area 145)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 1.1.1.1 129 0x80000002 0x004B7E 0
10.1.0.0 5.5.5.5 1415 0x80000001 0x00B9DC 0
192.168.57.0 5.5.5.5 1415 0x80000001 0x0030CB 0
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.1.0.0 1.1.1.1 1414 0x80000001 0x00C6E9 0
172.16.1.0 1.1.1.1 1929 0x80000001 0x00D836 0
172.16.2.0 2.2.2.2 1035 0x80000002 0x003157 0
192.168.57.0 1.1.1.1 1414 0x80000001 0x003DD8 0
R3#sh ip ospf database
OSPF Router with ID (3.3.3.3) (Process ID 1)
Router Link States (Area 23)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 1094 0x80000003 0x00C914 1
3.3.3.3 3.3.3.3 1100 0x80000003 0x00AF09 2
Net Link States (Area 23)
Link ID ADV Router Age Seq# Checksum
192.168.23.2 2.2.2.2 1094 0x80000002 0x009606
Summary Net Link States (Area 23)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 2.2.2.2 917 0x80000003 0x0071C2
R4#sh ip ospf database
OSPF Router with ID (4.4.4.4) (Process ID 1)
Router Link States (Area 145)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 992 0x80000003 0x00E3DA 2
4.4.4.4 4.4.4.4 623 0x80000005 0x000F9E 2
5.5.5.5 5.5.5.5 1022 0x8000000B 0x002F69 2
Net Link States (Area 145)
Link ID ADV Router Age Seq# Checksum
192.168.145.1 1.1.1.1 728 0x80000004 0x0062A2
Summary Net Link States (Area 145)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 1.1.1.1 1566 0x80000004 0x00151A
Type-7 AS External Link States (Area 145)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 1.1.1.1 204 0x80000002 0x004B7E 0
10.1.0.0 5.5.5.5 1490 0x80000001 0x00B9DC 0
192.168.57.0 5.5.5.5 1490 0x80000001 0x0030CB 0
R6#sh ip ospf database
OSPF Router with ID (6.6.6.6) (Process ID 1)
Router Link States (Area 68)
Link ID ADV Router Age Seq# Checksum Link count
6.6.6.6 6.6.6.6 2015 0x80000009 0x0077EB 2
8.8.8.8 8.8.8.8 1156 0x8000000B 0x00DBA4 1
Net Link States (Area 68)
Link ID ADV Router Age Seq# Checksum
192.168.68.6 6.6.6.6 509 0x80000003 0x0086AF
Summary Net Link States (Area 68)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 8.8.8.8 1156 0x80000002 0x00BE5E
1.1.1.1 8.8.8.8 927 0x80000001 0x009C7C
2.2.2.2 8.8.8.8 927 0x80000001 0x006EA6
3.3.3.3 8.8.8.8 927 0x80000001 0x00C20E
4.4.4.4 8.8.8.8 927 0x80000001 0x009438
5.5.5.5 8.8.8.8 927 0x80000001 0x006662
8.8.8.8 8.8.8.8 927 0x80000001 0x004FAE
20.1.0.0 8.8.8.8 928 0x80000001 0x00AA60
20.1.3.1 8.8.8.8 928 0x80000001 0x008E75
192.168.12.0 8.8.8.8 928 0x80000001 0x000D5B
192.168.18.0 8.8.8.8 928 0x80000001 0x00485A
192.168.23.0 8.8.8.8 928 0x80000001 0x0093C9
192.168.28.0 8.8.8.8 928 0x80000001 0x00D9BE
192.168.145.0 8.8.8.8 928 0x80000001 0x005092
R8#sh ip ospf database
Summary Net Link States (Area 68)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 8.8.8.8 1178 0x80000002 0x00BE5E
1.1.1.1 8.8.8.8 950 0x80000001 0x009C7C
2.2.2.2 8.8.8.8 950 0x80000001 0x006EA6
3.3.3.3 8.8.8.8 950 0x80000001 0x00C20E
4.4.4.4 8.8.8.8 950 0x80000001 0x009438
5.5.5.5 8.8.8.8 950 0x80000001 0x006662
8.8.8.8 8.8.8.8 950 0x80000001 0x004FAE
20.1.0.0 8.8.8.8 950 0x80000001 0x00AA60
20.1.3.1 8.8.8.8 950 0x80000001 0x008E75
192.168.12.0 8.8.8.8 950 0x80000001 0x000D5B
192.168.18.0 8.8.8.8 950 0x80000001 0x00485A
192.168.23.0 8.8.8.8 950 0x80000001 0x0093C9
192.168.28.0 8.8.8.8 950 0x80000001 0x00D9BE
192.168.145.0 8.8.8.8 950 0x80000001 0x005092
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.1.0.0 1.1.1.1 1543 0x80000001 0x00C6E9 0
172.16.1.0 1.1.1.1 11 0x80000002 0x00D637 0
172.16.2.0 2.2.2.2 1163 0x80000002 0x003157 0
192.168.57.0 1.1.1.1 1543 0x80000001 0x003DD8 0
R8#sh ip ospf nei
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - - 192.168.28.2 OSPF_VL1
1.1.1.1 0 FULL/ - - 192.168.18.1 OSPF_VL0
1.1.1.1 1 FULL/DR 00:00:39 192.168.18.1 FastEthernet0/1
2.2.2.2 1 FULL/BDR 00:00:36 192.168.28.2 FastEthernet0/2
6.6.6.6 1 FULL/DR 00:00:33 192.168.68.6 FastEthernet0/6
本文出自 “穿过地狱去看海” 博客,谢绝转载!