一個拓撲全搞定 -- 一個拓撲搞定 ospf的5種LSA類型

1.1.  OSPF五種LSA類型

1.1.1.實驗目的

查看所有路由器的數據庫和路由表,深入瞭解OSPFLSA類型和OSPF路由條目

實驗拓撲

wKiom1m3gl6gsR7QAAEKeFvH5s0145.jpg1.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

spacer.gif  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

 

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章