IS-IS(中間系統到中間系統的路由選擇協議)是由 ISO 提出的一種路由選擇協議。它是一種鏈路狀態協議。在該協議中,IS(路由器)負責交換基于鏈路開銷的路由信息并決定網絡拓撲結構。IS-IS 類似于 TCP/IP 網絡的開放最短路徑優先(OSPF)協議。
網絡環境

NE80E_A、NE80E_B與NE40三臺設備都運行在IS-IS Level-2區域中。為了引導NE40的上行流量負載分擔,NE80E_A與NE80E_B同時對NE40下發了IS-IS缺省路由,出現路由環路。
故障分析
步驟 1 在NE80E_A 、NE80E_B和NE40設備上分別執行命令display current-configuration查看接口上IS-IS的配置情況,發現NE80E_A 、 NE80E_B和NE40設備的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設備上執行命令display isis peer,查看鄰居狀況,發現NE40已 分別與NE80E_A 和NE80E_B建立鄰居關系。
- [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設備上執行命令display isis route,發現存在NE80E_A 和 NE80E_B的缺省路由。在NE80E_A 和NE80E_B設備上分別執行命令 display isis route發現NE80E_A 和NE80E_B能互相學習到對方的 缺 省路由,因此而形成了路由環路,如下所示。
- [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設備上進行以下操作。
步驟 2 執行命令system-view,進入系統視圖。
步驟 3 執行命令isis 1,進入IS-IS視圖。
步驟 4 執行命令acl number 2008,創建 ACL 2008并進入ACL視圖。
步驟 5 執行命令rule 5 deny source 0.0.0.0 0,增加一個基于ACL 2008的規則5,過濾源地址為0.0.0.0的路由。
步驟 6 執行命令rule 10 permit,增加一個基于ACL 2008的規則10,允許任何報文通過。
步驟 7 執行命令isis 1,進入IS-IS視圖。
步驟 8 執行命令filter-policy 2008 import,使用ACL 2008對接收的路由進行過濾。
步驟 9 完成上述操作后,NE80E_A 和NE80E_B可以過濾彼此的IS-IS缺省路由,該故障排除。
案例總結
對于IS-IS路由協議Level-2區域中兩臺設備同時下發IS-IS默認路由時,雙方會將對方發布的默認路由條目放入路由轉發表中,產生的缺省路由會讓他們互相指向從而形成環路,因此需要過濾掉彼此的IS-IS缺省路由。 本文出自:億恩科技【www.endtimedelusion.com】
服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]
|