IS-IS同時(shí)下發(fā)缺省路由出現(xiàn)路由環(huán)路解決
IS-IS(中間系統(tǒng)到中間系統(tǒng)的路由選擇協(xié)議)是由 ISO 提出的一種路由選擇協(xié)議。它是一種鏈路狀態(tài)協(xié)議。在該協(xié)議中,IS(路由器)負(fù)責(zé)交換基于鏈路開銷的路由信息并決定網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)。IS-IS 類似于 TCP/IP 網(wǎng)絡(luò)的開放最短路徑優(yōu)先(OSPF)協(xié)議。
網(wǎng)絡(luò)環(huán)境
NE80E_A、NE80E_B與NE40三臺(tái)設(shè)備都運(yùn)行在IS-IS Level-2區(qū)域中。為了引導(dǎo)NE40的上行流量負(fù)載分擔(dān),NE80E_A與NE80E_B同時(shí)對(duì)NE40下發(fā)了IS-IS缺省路由,出現(xiàn)路由環(huán)路。
故障分析
步驟 1 在NE80E_A 、NE80E_B和NE40設(shè)備上分別執(zhí)行命令display current-configuration查看接口上IS-IS的配置情況,發(fā)現(xiàn)NE80E_A 、 NE80E_B和NE40設(shè)備的IS-IS配置正確,如下所示。
- [NE80E_A] display current-configuration
- #
- sysname RouterA
- #
- aps fast-interval 0
- #
- isis 1
- is-level level-2
- network-entity 10.0000.0000.0001.00
- default-route-advertise always
- #
- interface Serial1/0/0
- link-protocol ppp
- ip address 1.1.1.1 255.255.255.0
- isis enable 1
- #
- interface Serial1/0/1
- link-protocol ppp
- ip address 3.3.3.1 255.255.255.0
- isis enable 1
- #
- interface Serial1/0/2
- link-protocol ppp
- ip address 10.10.10.1 255.255.255.0
- isis enable 1
- [NE80E_B] display current-configuration
- #
- sysname RouterB
- #
- aps fast-interval 0
- #
- isis 1
- is-level level-2
- network-entity 10.0000.0000.0002.00
- default-route-advertise always
- #
- interface Serial1/0/0
- link-protocol ppp
- ip address 2.2.2.1 255.255.255.0
- isis enable 1
- #
- interface Serial1/0/1
- link-protocol ppp
- ip address 4.4.4.1 255.255.255.0
- isis enable 1
- #
- interface Serial1/0/2
- link-protocol ppp
- ip address 10.10.10.2 255.255.255.0
- isis enable 1
- [NE40] display current-configuration
- #
- sysname RouterC
- #
- aps fast-interval 0
- #
- isis 1
- is-level level-2
- network-entity 10.0000.0000.0003.00
- #
- interface Serial1/0/0
- link-protocol ppp
- ip address 3.3.3.2 255.255.255.0
- isis enable 1
- #
- interface Serial1/0/1
- link-protocol ppp
- ip address 4.4.4.2 255.255.255.0
- isis enable 1
步驟 2 在NE40設(shè)備上執(zhí)行命令display isis peer,查看鄰居狀況,發(fā)現(xiàn)NE40已 分別與NE80E_A 和NE80E_B建立鄰居關(guān)系。
- [NE40] display isis peer
- Peer information for ISIS(1)
- System Id Interface Circuit Id State HoldTime Type PRI
- -------------------------------------------------------------------------------
- 0000.0000.0001 S1/0/0 0000000002 Up 23s L2 --
- 0000.0000.0002 S1/0/1 0000000002 Up 29s L2 --
步驟 3 在NE40設(shè)備上執(zhí)行命令display isis route,發(fā)現(xiàn)存在NE80E_A 和 NE80E_B的缺省路由。在NE80E_A 和NE80E_B設(shè)備上分別執(zhí)行命令 display isis route發(fā)現(xiàn)NE80E_A 和NE80E_B能互相學(xué)習(xí)到對(duì)方的 缺 省路由,因此而形成了路由環(huán)路,如下所示。
- [NE40] display isis route
- Route information for ISIS(1)
- -----------------------------
- ISIS(1) Level-2 Forwarding Table
- --------------------------------
- IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
- ----------------------------------------------------------------------------
- 0.0.0.0/0 10 NULL S1/0/0 3.3.3.1 A/-/-/-
- S1/0/1 4.4.4.1 4.4.4.0/24 10 NULL S1/0/1 Direct D/-/L/-
- 10.10.10.0/24 20 NULL S1/0/0 3.3.3.1 A/-/-/-
- S1/0/1 4.4.4.1
- 3.3.3.0/24 10 NULL S1/0/0 Direct D/-/L/-
- 2.2.2.0/24 20 NULL S1/0/1 4.4.4.1 A/-/-/-
- 1.1.1.0/24 20 NULL S1/0/0 3.3.3.1 A/-/-/-
- Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
- U-Up/Down Bit Set
- [NE80E_A] display isis route
- Route information for ISIS(1)
- -----------------------------
- ISIS(1) Level-2 Forwarding Table
- --------------------------------
- IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
- ----------------------------------------------------------------------------
- 0.0.0.0/0 10 NULL S1/0/2 10.10.10.2 A/-/-/-
- 4.4.4.0/24 20 NULL S1/0/2 10.10.10.2 A/-/-/-
- S1/0/1 3.3.3.2
- 10.10.10.0/24 10 NULL S1/0/2 Direct D/-/L/-
- 3.3.3.0/24 10 NULL S1/0/1 Direct D/-/L/-
- 2.2.2.0/24 20 NULL S1/0/2 10.10.10.2 A/-/-/-
- S1/0/0 1.1.1.2
- 1.1.1.0/24 10 NULL S1/0/0 Direct D/-/L/-
- Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
- U-Up/Down Bit Set
- [NE80E_B] dislay isis route
- Route information for ISIS(1)
- -----------------------------
- ISIS(1) Level-2 Forwarding Table
- --------------------------------
- IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
- ----------------------------------------------------------------------------
- 0.0.0.0/0 10 NULL S1/0/2 10.10.10.1 A/-/-/-
- 4.4.4.0/24 10 NULL S1/0/1 Direct D/-/L/-
- 10.10.10.0/24 10 NULL S1/0/2 Direct D/-/L/-
- 3.3.3.0/24 20 NULL S1/0/2 10.10.10.1 A/-/-/-
- S1/0/1 4.4.4.2
- 2.2.2.0/24 10 NULL S1/0/0 Direct D/-/L/-
- 1.1.1.0/24 20 NULL S1/0/2 10.10.10.1 A/-/-/-
- S1/0/0 2.2.2.2
- Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
- U-Up/Down Bit Set
處理步驟
步驟 1 分別在NE80E_A 和NE80E_B設(shè)備上進(jìn)行以下操作。
步驟 2 執(zhí)行命令system-view,進(jìn)入系統(tǒng)視圖。
步驟 3 執(zhí)行命令isis 1,進(jìn)入IS-IS視圖。
步驟 4 執(zhí)行命令acl number 2008,創(chuàng)建 ACL 2008并進(jìn)入ACL視圖。
步驟 5 執(zhí)行命令rule 5 deny source 0.0.0.0 0,增加一個(gè)基于ACL 2008的規(guī)則5,過濾源地址為0.0.0.0的路由。
步驟 6 執(zhí)行命令rule 10 permit,增加一個(gè)基于ACL 2008的規(guī)則10,允許任何報(bào)文通過。
步驟 7 執(zhí)行命令isis 1,進(jìn)入IS-IS視圖。
步驟 8 執(zhí)行命令filter-policy 2008 import,使用ACL 2008對(duì)接收的路由進(jìn)行過濾。
步驟 9 完成上述操作后,NE80E_A 和NE80E_B可以過濾彼此的IS-IS缺省路由,該故障排除。
案例總結(jié)
對(duì)于IS-IS路由協(xié)議Level-2區(qū)域中兩臺(tái)設(shè)備同時(shí)下發(fā)IS-IS默認(rèn)路由時(shí),雙方會(huì)將對(duì)方發(fā)布的默認(rèn)路由條目放入路由轉(zhuǎn)發(fā)表中,產(chǎn)生的缺省路由會(huì)讓他們互相指向從而形成環(huán)路,因此需要過濾掉彼此的IS-IS缺省路由。
【編輯推薦】