本实验所有的路由器IP地址的配置已经省略。
R1 上的配置和show
#router-id 1.1.1.1
#log-adjacency-changes
#area 1 nssa
#redistribute rip metric 2 subnets
#network 12.12.12.1 0.0.0.0 area 1
#router rip
#ver 2
net 6.6.6.1
#sh ip os database
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1886 0x80000007 0x00D6F1 1
10.10.10.10 10.10.10.10 1706 0x80000008 0x003746 1
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
12.12.12.2 10.10.10.10 1706 0x80000005 0x00D1E3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
23.23.23.0 10.10.10.10 1706 0x80000006 0x001D9D
24.24.24.0 10.10.10.10 1706 0x80000006 0x00F8BE
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.10.10.10 103 0x80000001 0x00DFA9 0
6.6.6.0 1.1.1.1 125 0x80000006 0x005D0B 0
R2 上的配置和show
#router ospf 1
#router-id 10.10.10.10
#log-adjacency-changes
#area 1 nssa default-information-originate
#network 12.12.12.2 0.0.0.0 area 1
#network 23.23.23.1 0.0.0.0 area 0
#network 24.24.24.1 0.0.0.0 area 2
#sh ip os da
OSPF Router with ID (10.10.10.10) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
3.3.3.3 3.3.3.3 1508 0x80000007 0x003349 1
10.10.10.10 10.10.10.10 1653 0x80000007 0x001232 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
23.23.23.1 10.10.10.10 1653 0x80000005 0x000D86
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
12.12.12.0 10.10.10.10 1910 0x80000005 0x0007DB
24.24.24.0 10.10.10.10 1910 0x80000005 0x005569
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 65 0x80000008 0x00D4F2 1
10.10.10.10 10.10.10.10 1921 0x80000008 0x003746 1
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
12.12.12.2 10.10.10.10 1921 0x80000005 0x00D1E3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
23.23.23.0 10.10.10.10 1921 0x80000006 0x001D9D
24.24.24.0 10.10.10.10 1921 0x80000006 0x00F8BE
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.10.10.10 317 0x80000001 0x00DFA9 0
6.6.6.0 1.1.1.1 334 0x80000006 0x005D0B 0
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
4.4.4.4 4.4.4.4 1707 0x80000006 0x001F52 1
10.10.10.10 10.10.10.10 1664 0x80000008 0x004CF0 1
Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
24.24.24.1 10.10.10.10 1664 0x80000005 0x001B71
Summary Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
12.12.12.0 10.10.10.10 1921 0x80000005 0x0007DB
23.23.23.0 10.10.10.10 1922 0x80000005 0x007948
Summary ASB Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
3.3.3.3 10.10.10.10 1413 0x80000005 0x0020D9
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
6.6.6.0 10.10.10.10 1922 0x80000005 0x00E46A 0
10.10.10.0 3.3.3.3 1520 0x80000005 0x00671D 0
R3上的配置和show
#router ospf 1
#router-id 3.3.3.3
#redistribute rip metric 2 subnets
#network 23.23.23.2 0.0.0.0 area 0
#sh ip os da
OSPF Router with ID (3.3.3.3) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
3.3.3.3 3.3.3.3 1695 0x80000007 0x003349 1
10.10.10.10 10.10.10.10 1842 0x80000007 0x001232 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
23.23.23.1 10.10.10.10 1842 0x80000005 0x000D86
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
12.12.12.0 10.10.10.10 77 0x80000006 0x0005DC
24.24.24.0 10.10.10.10 77 0x80000006 0x00536A
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
6.6.6.0 10.10.10.10 77 0x80000006 0x00E26B 0
10.10.10.0 3.3.3.3 1699 0x80000005 0x00671D 0
R4 上的配置和show
#router ospf 1
#router-id 4.4.4.4
#network 24.24.24.2 0.0.0.0 area 2
#router rip
#ver 2
#net 10.10.10.1
#sh ip os da
OSPF Router with ID (4.4.4.4) (Process ID 1)
Router Link States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
4.4.4.4 4.4.4.4 2010 0x80000006 0x001F52 1
10.10.10.10 10.10.10.10 1968 0x80000008 0x004CF0 1
Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
24.24.24.1 10.10.10.10 1968 0x80000005 0x001B71
Summary Net Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
12.12.12.0 10.10.10.10 202 0x80000006 0x0005DC
23.23.23.0 10.10.10.10 202 0x80000006 0x007749
Summary ASB Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
3.3.3.3 10.10.10.10 1716 0x80000005 0x0020D9
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
6.6.6.0 10.10.10.10 204 0x80000006 0x00E26B 0
10.10.10.0 3.3.3.3 1824 0x80000005 0x00671D 0