tft每日頭條

 > 圖文

 > 無類路由協議的好處

無類路由協議的好處

圖文 更新时间:2025-09-12 07:04:23
1.目的

(1)在路由器上啟動 IS-IS 路由進程

(2)啟用參與路由協議的接口

(3)L1 和 L2 路由的區别

(4)配置 L1 或 L2 路由器

(5)配置電路類型

(6)配置區域間路由彙總

(7)通告默認路由

(8)配置 IS-IS 認證

(9)查看和調試多區域 IS-IS 路由協議相關信息

2.拓撲

無類路由協議的好處(路由協議中的集成服務協議)1

IS-IS 區域的劃分是基于路由器的,也就是說一個路由器隻能屬于一個區域,而 OSPF區域的劃分是基于鍊路的

3.步驟

(1)步驟 1:配置路由器 R1

R1(config)# router isis

R1(config-router)# net 49.0001.1111.1111.1111.00

R1(config-router)# is-type level-1 //将 R1 配置成 L1 路由器

R1(config-router)# area-password area //啟用區域認證

R1(config)# interface Loopback0

R1(config-if)# ip address 1.1.1.1 255.255.255.0

R1(config-if)# ip router isis

R1(config)# interface Serial0/0/0

R1(config-if)# ip address 192.168.12.1 255.255.255.0

R1(config-if)# ip router isis

R1(config-if)# isis password neighbor level-1 //啟用 level 1 鄰居認證

R1(config-if)# no shutdown

(2)步驟 2:配置路由器 R2

R2(config)# router isis

R2(config-router)# net 49.0001.2222.2222.2222.00

R2(config-router)# default-information originate //向 IS-IS 區域注入默認路由

R2(config-router)# area-password area

R2(config-router)# domain-password domain //啟用域認證

R2(config)# interface Serial0/0/0

R2(config-if)# ip address 192.168.12.2 255.255.255.0

R2(config-if)# clockrate 128000

R2(config-if)# ip router isis

R2(config-if)# isis password neighbor level-1

R2(config-if)# no shutdown

R2(config)# interface Serial0/0/1

R2(config-if)# ip address 192.168.23.2 255.255.255.0

R2(config-if)# ip router isis

R2(config-if)# clockrate 128000

R2(config-if)# no shutdown

(3)步驟 3:配置路由器 R3

R3(config)# router isis

R3(config-router)# net 49.0002.3333.3333.3333.00

R3(config-router)# is-type level-2-only //将 R3 配置成 L2 路由器

R3(config-router)# domain-password domain

R3(config)# interface Serial0/0/0

R3(config-if)# ip address 192.168.34.3 255.255.255.0

R3(config-if)# ip router isis

R3(config-if)# isis circuit-type level-2-only //配置接口電路類型

R3(config-if)# isis password neighborpassword level-2 //啟用 level 2 鄰居認證

R3(config-if)# clockrate 128000

R3(config-if)# no shutdown

R3(config)# interface Serial0/0/1

R3(config-if)# ip address 192.168.23.3 255.255.255.0

R3(config-if)# ip router isis

R3(config-if)# no shutdown

(4)步驟 4:配置路由器 R4

R4(config)# router isis

R4(config-router)# net 49.0003.4444.4444.4444.00

R4(config-router)# summary-address 4.4.0.0 255.255.252.0//配置區域間路由彙總

R4(config-router)# is-type level-2-only

R4(config-router)# domain-password domain

R4(config)# interface Loopback0

R4(config-if)# ip address 4.4.0.4 255.255.255.0

R4(config-if)# ip router isis

R4(config)# interface Loopback1

R4(config-if)# ip address 4.4.1.4 255.255.255.0

R4(config-if)# ip router isis

R4(config)# interface Loopback2

R4(config-if)# ip address 4.4.2.4 255.255.255.0

R4(config-if)# ip router isis

R4(config)# interface Loopback3

R4(config-if)# ip address 4.4.3.4 255.255.255.0

R4(config-if)# ip router isis

R4(config-if)# interface Serial0/0/0

R4(config-if)# ip address 192.168.34.4 255.255.255.0

R4(config-if)# ip router isis

R4(config-if)# isis circuit-type level-2-only

R4(config-if)# isis password neighborpassword level-2

R4(config-if)#no shutdown

no shutdown

【技術要點】

IS-IS 的認證隻限于明文口令,Cisco 的 IOS 支持 3 個級别的認證:

(1)鄰居認證:相互連接的路由器接口必須配置相同的口令,同時必須為 L1 和 L2 類

型的鄰居關系配置各自的認證,L1 鄰居認證的密碼和 L2 鄰居認證的密碼可以不同。鄰居認

證通過命令“ isis password”配置。本實驗中 R1 和 R2 之間的串行鍊路啟用 Level-1 的鄰

居認證,而 R3 和 R4 之間的串行鍊路啟用 Level-2 的鄰居認證;

(2)區域認證:區域内的每台路由器必須執行認證,并且必須使用相同的口令。區域

認證通過命令“ area-password”配置。本實驗中區域“49.0001”啟用區域認證;

(3)域認證:域内的每一個 L2 和 L1/L2 類型的路由器必須執行認證,并且必須使用相

同的口令。域認證通過命令“ domain-password”配置。本實驗中 R2、R3 和 R4 都配置域認

證,因為路由器 R1 是 L1 路由器,所以不用配置域認證。

4.實驗調試

(1) show isis database

R1# show isis database

IS-IS Level-1 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

R1.00-00 * 0x0000003B 0x1F72 659 0/0/0

R2.00-00 0x00000039 0x9DEE 658 1/0/0

R2# show isis database

IS-IS Level-1 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

R1.00-00 0x00000008 0x8161 993 1/0/0

R2.00-00 * 0x00000007 0x02BC 902 1/0/0

IS-IS Level-2 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

R1.00-00 0x00000009 0xE455 1120 0/0/0

R2.00-00 * 0x00000006 0xFFFD 903 0/0/0

R3.00-00 0x00000009 0xE9C4 1039 0/0/0

R4.00-00 0x0000000B 0xC040 1110 0/0/0

R3# show isis database

IS-IS Level-2 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

R2.00-00 0x0000003B 0xC0D2 1036 0/0/0

R3.00-00 * 0x00000044 0x0FE3 1043 0/0/0

R4.00-00 0x00000046 0xEC58 1041 0/0/0

以上輸出表明:

① R1 路由器為 L1 路由器,隻維護 L1 的鍊路狀态數據庫;

② R2 路由器為 L1/L2 路由器,同時為 L1 和 L2 維護單獨的鍊路狀态數據庫,也表明所

在區域有另一台路由器 R1;

③ R3 和 R4 路由器為 L2 路由器,隻維護 L2 的鍊路狀态數據庫。

(2) show ip route

R1#show ip route isis

i L1 192.168.23.0/24 [115/20] via 192.168.12.2, Serial0/0/0

i*L1 0.0.0.0/0 [115/10] via 192.168.12.2, Serial0/0/0

show ip route isis

i L1 192.168.23.0/24 [115/20] via 192.168.12.2, Serial0/0/0

i*L1 0.0.0.0/0 [115/10] via 192.168.12.2, Serial0/0/0

R2# show ip route isis

1.0.0.0/24 is subnetted, 1 subnets

i L1 1.1.1.0 [115/20] via 192.168.12.1, Serial0/0/0

4.0.0.0/22 is subnetted, 1 subnets

i L2 4.4.0.0 [115/30] via 192.168.23.3, Serial0/0/1

i L2 192.168.34.0/24 [115/20] via 192.168.23.3, Serial0/0/1

i L2 4.4.0.0 [115/30] via 192.168.23.3, Serial0/0/1

i L2 192.168.34.0/24 [115/20] via 192.168.23.3, Serial0/0/1

R3# show ip route isis

i L2 192.168.12.0/24 [115/20] via 192.168.23.2, Serial0/0/1

1.0.0.0/24 is subnetted, 1 subnets

i L2 1.1.1.0 [115/30] via 192.168.23.2, Serial0/0/1

4.0.0.0/22 is subnetted, 1 subnets

i L2 4.4.0.0 [115/20] via 192.168.34.4, Serial0/0/0

i*L2 0.0.0.0/0 [115/10] via 192.168.23.2, Serial0/0/1

R4# show ip route isis

i L2 192.168.12.0/24 [115/30] via 192.168.34.3, Serial0/0/0

1.0.0.0/24 is subnetted, 1 subnets

i L2 1.1.1.0 [115/40] via 192.168.34.3, Serial0/0/0

4.0.0.0/8 is variably subnetted, 5 subnets, 2 masks

i su 4.4.0.0/22 [115/10] via 0.0.0.0, Null0

i L2 192.168.23.0/24 [115/20] via 192.168.34.3, Serial0/0/0

i*L2 0.0.0.0/0 [115/20] via 192.168.34.3, Serial0/0/0

以上輸出表明:

① 由于 R1 為 L1 路由器,所以隻有“ i L1”的路由和一條到最近的 L1/L2 路由器的默

認路由“ i*L1”;

② 由于 R1 和 R2 在一個區域,所以 R2 既有“ i L1”的路由,又有“ i L2”的路由;

③ R3 和 R4 都是 L2 路由器,所以隻有“ i L2”的路由;

④ R3 和 R4 都收到一條由 R2 注入的默認路由“ i*L2”;

⑤ R2 和 R3 都收到 R4 的彙總路由,同時 R4 的路由表自動生成一條“ i su”的路由條

目,主要是為了避免路由環路。

(3) show clns interface

R3#show clns interface s0/0/0

Serial0/0/0 is up, line protocol is up

Checksums enabled, MTU 1500, Encapsulation HDLC

ERPDUs enabled, min. interval 10 msec.

CLNS fast switching enabled

CLNS SSE switching disabled

DEC compatibility mode OFF for this interface

Next ESH/ISH in 12 seconds

Routing Protocol: IS-IS

Circuit Type: level-2

......

Circuit Type: level-2

......

以上輸出可以看到接口的電路類型為“ level-2”

以下是華為數通路由交換方向完整技術分享,歡迎對華為網絡技術感興趣的小夥伴們訂閱。

【可在專欄中進行查看訂閱】

華為新版HCIA數通路由交換

華為新版HCIP數通路由交換

華為新版HCIE數通路由交換

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关圖文资讯推荐

热门圖文资讯推荐

网友关注

Copyright 2023-2025 - www.tftnews.com All Rights Reserved