码迷,mamicode.com
首页 > 其他好文 > 详细

一个拓扑全搞定 -- 一个拓扑搞定 ospf的5种LSA类型

时间:2017-09-12 23:08:41      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:ccnp ospf ccie

1.1.  OSPF五种LSA类型

1.1.1.实验目的

查看所有路由器的数据库和路由表,深入了解OSPFLSA类型和OSPF路由条目

实验拓扑

技术分享1.1.2.实验配置

R1#show run

 router ospf 1

    log-adjacency-changes

    redistribute rip subnets redistribute rip metric-type 2 subnets

    network 16.16.16.0 0.0.0.255 area 16

!

  router rip

      network 10.0.0.0

 

R2#show run

router ospf 1

 log-adjacency-changes

 network 23.23.23.0 0.0.0.255 area 23

 network 26.26.26.0 0.0.0.255 area 0

 

R3#show run

router ospf 1

技术分享  log-adjacency-changes

  network 3.3.3.3 0.0.0.0 area 23

  network 23.23.23.0 0.0.0.255 area 23

 

R6#show run

router ospf 1

   log-adjacency-changes

   network 16.16.16.0 0.0.0.255 area 16

   network 26.26.26.0 0.0.0.255 area 0


1.1.3.实验验证

R1#show ip route

Gateway of last resort is not set

16.0.0.0/24 is subnetted, 1 subnets

C       16.16.16.0is directly connected, Ethernet0

3.0.0.0/32 is subnetted, 1 subnets

O IA    3.3.3.3[110/944] via 16.16.16.6, 00:38:18, Ethernet0

23.0.0.0/24 is subnetted, 1 subnets

O IA    23.23.23.0[110/943] via 16.16.16.6, 00:38:18, Ethernet0

10.0.0.0/24 is subnetted, 1 subnets

C       10.0.0.0is directly connected, Loopback0

26.0.0.0/24 is subnetted, 1 subnets

O IA    26.26.26.0 [110/879] via 16.16.16.6, 00:38:18, Ethernet0     ----OSPF自治系统内的域间路由通告

 

R6#show ip route

3.0.0.0/32 is subnetted, 1 subnets

O IA    3.3.3.3[110/934] via 26.26.26.2, 00:43:58, Serial2

23.0.0.0/24 is subnetted, 1 subnets

O IA    23.23.23.0[110/933] via 26.26.26.2, 00:43:58, Serial2

10.0.0.0/24 is subnetted, 1 subnets

O E2    10.0.0.0[110/20] via 16.16.16.1, 00:29:57, Ethernet0        ----OSPF自治系统外

的路由通告

 

R6#show ip ospf database

 

OSPF Router with ID (6.6.6.6) (ProcessID 1)

 

Router Link States (Area 0)

1

Link ID         ADV Router      Age         Seq#       Checksum Link count

2.2.2.2         2.2.2.2         939         0x80000006 0x00597E 2

6.6.6.6         6.6.6.6         1752        0x80000008 0x00551C 2

-----type 1 LSAs 描述域内直连路由器的状态,只在域内泛洪

Summary Net Link States (Area 0)

 

Link ID         ADV Router      Age         Seq#       Checksum

3.3.3.3         2.2.2.2         157         0x80000004 0x00499B

16.16.16.0      6.6.6.6         229         0x80000009 0x00E6FB

23.23.23.0      2.2.2.2         940         0x80000004 0x008A22

 

Summary ASB Link States (Area 0)

4

Link ID         ADV Router      Age         Seq#       Checksum

10.0.0.1        6.6.6.6         2006        0x80000002 0x009C71

-----type 4 LSA 伴随着5LSA产生,用于将ASBR通告到自治系统内的其他区域,一旦产生,作用类似于3LSA

Router Link States (Area 16)

 

Link ID         ADV Router      Age         Seq#       Checksum Link count

6.6.6.6         6.6.6.6         229         0x8000000D 0x00047C 1

10.0.0.1        10.0.0.1        16          0x80000005 0x00ADF8 1

 

Net Link States (Area 16)

2

Link ID         ADV Router      Age         Seq#       Checksum

16.16.16.6      6.6.6.6         231         0x80000003 0x00B115

-----type 2 LSA 由广播或非广播网络内的DR产生,仅在域内泛洪

Summary Net Link States (Area 16)

3

Link ID         ADV Router      Age         Seq#       Checksum

3.3.3.3         6.6.6.6         1753        0x80000003 0x00E389

23.23.23.0      6.6.6.6         1753        0x80000003 0x002510

26.26.26.0      6.6.6.6         1754        0x80000003 0x003636

-----type 3 LSA 转发域间路由,由后续的ABR再生成,只可在自治系统内转发

Type-5 AS External Link States

5

Link ID         ADV Router      Age         Seq#       Checksum Tag

10.0.0.0        10.0.0.1        1021        0x80000002 0x000387 0

-----type 5 LSAExternal LSA)由ASBR产生,用于直接在整个OSPF自治系统内转发外部路由

R1#show ip ospf database

 

OSPF Router with ID (10.0.0.1)(Process ID 1)

 

Router Link States (Area 16)

Link ID         ADV Router      Age         Seq#       Checksum Link count

6.6.6.6         6.6.6.6         1198        0x8000000C 0x00067B 1

10.0.0.1        10.0.0.1        979         0x80000004 0x00AFF7 1

Net Link States (Area 16)

 

Link ID         ADV Router      Age         Seq#       Checksum

16.16.16.6      6.6.6.6         1198        0x80000002 0x00B314

Summary Net Link States (Area 16)

 

Link ID         ADV Router      Age         Seq#       Checksum

3.3.3.3         6.6.6.6         705         0x80000003 0x00E389

23.23.23.0      6.6.6.6         705         0x80000003 0x002510

26.26.26.0      6.6.6.6         705         0x80000003 0x003636

Type-5 AS External Link States

 

Link ID         ADV Router      Age         Seq#       Checksum Tag

10.0.0.0        10.0.0.1        2015        0x80000001 0x000586 0

 

注:

R1 database 中有type 1235 LSA

R6数据库中有Type 12345 LSA

R2数据库中有Type 1345 LSA

R3数据库中有Type 1345 LSA

 

 


本文出自 “黑客的眼睛” 博客,转载请与作者联系!

一个拓扑全搞定 -- 一个拓扑搞定 ospf的5种LSA类型

标签:ccnp ospf ccie

原文地址:http://9627522.blog.51cto.com/9617522/1964617

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!