OSPF中的五类LSA
实验拓扑:
基本配置:
R1#
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Ethernet1/1
ip address 126.126.126.1 255.255.255.0
half-duplex
router ospf 1
log-adjacency-changes
network 126.126.126.0 0.0.0.255 area 126
R6#
interface Loopback0
ip address 6.6.6.6 255.255.255.0
interface Serial0/3
ip address 36.36.36.6 255.255.255.0
interface Ethernet1/1
ip address 126.126.126.6 255.255.255.0
half-duplex
router ospf 1
router-id 6.6.6.6
log-adjacency-changes
network 36.36.36.0 0.0.0.255 area 0
network 126.126.126.0 0.0.0.255 area 126
R3#
interface Loopback0
ip address 3.3.3.3 255.255.255.0
interface Serial0/3
ip address 36.36.36.3 255.255.255.0
interface Serial0/1
ip address 23.23.23.3 255.255.255.0
router ospf 1
log-adjacency-changes
network 23.23.23.0 0.0.0.255 area 23
network 36.36.36.0 0.0.0.255 area 0
R2#
interface Loopback0
ip address 2.2.2.2 255.255.255.0
interface Loopback1
ip address 5.5.1.1 255.255.255.0
interface Loopback2
ip address 5.5.2.1 255.255.255.0
interface Loopback3
ip address 5.5.3.1 255.255.255.0
interface Loopback4
ip address 5.5.4.1 255.255.255.0
interface Serial0/1
ip address 23.23.23.2 255.255.255.0
interface Ethernet1/1
ip address 126.126.126.2 255.255.255.0
router ospf 1
log-adjacency-changes
summary-address 5.5.0.0 255.255.0.0
redistribute rip subnets
network 23.23.23.0 0.0.0.255 area 23
network 126.126.126.0 0.0.0.255 area 126
router rip
version 2
network 5.0.0.0
no auto-summary
实验验证:
R1#sh ip ospf data
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum Link count
1.1.1.1
1.1.1.1 1489 0x80000005 0x002AF5 1
2.2.2.2
2.2.2.2 156 0x80000004 0x00F322 1
6.6.6.6
6.6.6.6 826 0x80000005 0x00F5FB 1
Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
126.126.126.6
6.6.6.6 1326 0x80000003 0x006C0A
Summary Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
23.23.23.0
6.6.6.6 826 0x80000002 0x0098C5
36.36.36.0
6.6.6.6 826 0x80000002 0x004037
Type-5 AS External Link States
Link ID
ADV Router Age Seq# Checksum Tag
5.5.1.0
2.2.2.2 156 0x80000001 0x00236A 0
5.5.2.0
2.2.2.2 157 0x80000001 0x001874 0
5.5.3.0
2.2.2.2 158 0x80000001 0x000D7E 0
5.5.4.0
2.2.2.2 158 0x80000001 0x000288 0
R1#
R6#sh ip ospf data
OSPF Router with ID (6.6.6.6) (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 644 0x80000003 0x00E4B0 2
6.6.6.6
6.6.6.6 831 0x80000002 0x00C5C1 2
Summary Net Link States (Area 0)
Link ID
ADV Router Age Seq# Checksum
23.23.23.0
3.3.3.3 889 0x80000002 0x00703A
126.126.126.0
6.6.6.6 831 0x80000002 0x006D31
Summary ASB Link States (Area 0)
Link ID
ADV Router Age Seq# Checksum
2.2.2.2
3.3.3.3 157 0x80000001 0x0047A0
2.2.2.2
6.6.6.6 157 0x80000001 0x00CE43
Router Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum Link count
1.1.1.1
1.1.1.1 1497 0x80000005 0x002AF5 1
2.2.2.2
2.2.2.2 163 0x80000004 0x00F322 1
6.6.6.6
6.6.6.6 832 0x80000005 0x00F5FB 1
Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
126.126.126.6
6.6.6.6 1333 0x80000003 0x006C0A
Summary Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
23.23.23.0
6.6.6.6 834 0x80000002 0x0098C5
36.36.36.0
6.6.6.6 835 0x80000002 0x004037
Type-5 AS External Link States
Link ID
ADV Router Age Seq# Checksum Tag
5.5.1.0
2.2.2.2 166 0x80000001 0x00236A 0
5.5.2.0
2.2.2.2 168 0x80000001 0x001874 0
5.5.3.0
2.2.2.2 168 0x80000001 0x000D7E 0
5.5.4.0
2.2.2.2 168 0x80000001 0x000288 0
R3#sh ip ospf data
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 654 0x80000003 0x00E4B0 2
6.6.6.6
6.6.6.6 844 0x80000002 0x00C5C1 2
Summary Net Link States (Area 0)
Link ID
ADV Router Age Seq# Checksum
23.23.23.0
3.3.3.3 900 0x80000002 0x00703A
126.126.126.0
6.6.6.6 844 0x80000002 0x006D31
Summary ASB Link States (Area 0)
Link ID
ADV Router Age Seq# Checksum
2.2.2.2
3.3.3.3 168 0x80000001 0x0047A0
2.2.2.2
6.6.6.6 169 0x80000001 0x00CE43
Router Link States (Area 23)
Link ID
ADV Router Age Seq# Checksum Link count
2.2.2.2
2.2.2.2 174 0x80000005 0x00D61F 2
3.3.3.3
3.3.3.3 405 0x80000004 0x00757D 2
Summary Net Link States (Area 23)
Link ID
ADV Router Age Seq# Checksum
36.36.36.0
3.3.3.3 901 0x80000002 0x009AE8
126.126.126.0
3.3.3.3 655 0x80000002 0x004A20
Type-5 AS External Link States
Link ID
ADV Router Age Seq# Checksum Tag
5.5.1.0
2.2.2.2 175 0x80000001 0x00236A 0
5.5.2.0
2.2.2.2 175 0x80000001 0x001874 0
5.5.3.0
2.2.2.2 175 0x80000001 0x000D7E 0
5.5.4.0
2.2.2.2 175 0x80000001 0x000288 0
R2#sh ip ospf data
OSPF Router with ID (2.2.2.2) (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 179 0x80000005 0x00D61F 2
3.3.3.3
3.3.3.3 412 0x80000004 0x00757D 2
Summary Net Link States (Area 23)
Link ID
ADV Router Age Seq# Checksum
36.36.36.0
3.3.3.3 907 0x80000002 0x009AE8
126.126.126.0
3.3.3.3 661 0x80000002 0x004A20
Router Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum Link count
1.1.1.1
1.1.1.1 1515 0x80000005 0x002AF5 1
2.2.2.2
2.2.2.2 179 0x80000004 0x00F322 1
6.6.6.6
6.6.6.6 850 0x80000005 0x00F5FB 1
Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
126.126.126.6
6.6.6.6 1351 0x80000003 0x006C0A
Summary Net Link States (Area 126)
Link ID
ADV Router Age Seq# Checksum
23.23.23.0
6.6.6.6 851 0x80000002 0x0098C5
36.36.36.0
6.6.6.6 852 0x80000002 0x004037
Type-5 AS External Link States
Link ID
ADV Router Age Seq# Checksum Tag
5.5.1.0
2.2.2.2 180 0x80000001 0x00236A 0
5.5.2.0
2.2.2.2 181 0x80000001 0x001874 0
5.5.3.0
2.2.2.2 181 0x80000001 0x000D7E 0
5.5.4.0
2.2.2.2 181 0x80000001 0x000288 0
类型列表
|
Type 1
|
Type 2
|
Type 3
|
Type 4
|
Type 5
|
area 0
|
√
|
×
|
√
|
√
|
√
|
area 23
|
√
|
×
|
√
|
×
|
√
|
area 126
|
√
|
√
|
√
|
×
|
√
|