IS-IS 协议上机实验
1. 学习目标
1. 掌握IS-IS 协议的配置
2. 掌握IS-IS 协议的基本调试
3. 掌握IS-IS 协议的基本故障排除
2. 实验步骤:
2.1 IS-IS 协议的基本配置
实验环境:
A r e a : 86.0001Area 86.0002
1.1.1.0/30.1
.2 2.2.2.0/30.1.2
L0: 20.1.1.1/24
L0: 30.1.1.1/24
L0: 40.1.1.1/24
RTA
RTB
RTC
图1 IS-IS 协议上机组网图
本实验中NET 的配置采用扩展Loopback 0的IP 地址获得,RTA 为L1路由器;RTB 为L12路由器,与RTA 连接的接口为L1接口,与RTC 连接的接口为L2接口;RTC 为L2路由器。
RTA 的配置命令:
[rta]isis
[rta-isis]network-entity 86.0001.0200.0100.1001.00
[rta-isis]is-level Level-1
[rta-LoopBack0] ip address 20.1.1.1 255.255.255.255
[rta-LoopBack0] isis enable
[rta-Ethernet1/0] ip address 1.1.1.1 255.255.255.252
[rta-Ethernet1/0] isis enable
[rta-Ethernet1/0]isis circuit-level level-1
RTB 的配置:
[rtb]isis
[rtb-isis] network-entity 86.0001.0300.0100.1001.00
[rtb-Ethernet4/1/0] ip address 1.1.1.2 255.255.255.252
[rtb-Ethernet4/1/0] isis enable
[rtb-Ethernet4/1/0] isis circuit-level level-1
[rtb-Ethernet5/0/0] ip address 2.2.2.1 255.255.255.252
[rtb-Ethernet5/0/0] isis enable
[rtb-Ethernet5/0/0]is circuit-level level-2
RTC的配置:
[rtc]isis
[rtc-isis] network-entity 86.0002.0400.0100.1001.00
[rtb-isis]is-level level-2
[rtc-Ethernet5/0/0] ip address 2.2.2.2 255.255.255.252
[rtc-Ethernet5/0/0] isis enable
[rtc-Ethernet5/0/0]is circuit-level level-2
[rtc-LoopBack0] ip address 40.1.1.1 255.255.255.255
[rtc-LoopBack0] isis enable
查看RTA的路由表:
[rta]display ip routing-table
Routing Table: public net
Destination/Mask Proto Pre Cost Nexthop Interface
0.0.0.0/0 IS-IS 15 10 1.1.1.2 Ethernet1/0
1.1.1.0/30 DIRECT 0 0 1.1.1.1 Ethernet1/0
1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
2.2.2.0/30 IS-IS 15 20 1.1.1.2 Ethernet1/0
20.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
30.1.1.1/32 IS-IS 15 20 1.1.1.2 Ethernet1/0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
由于RTA 是Level-1 的路由器,所以RTA产生一条默认的IS-IS 路由
指向与它最近的L1-L2路由器RTB。由于RTB是L1-L2的路由器,所以
RTB的路由信息能够被RTA学习到;RTC是L2的路由器,产生Level-2
的路由,RTC的路由信息RTB不会发送给RTA。
查看RTC的路由表
[rtc-isis]display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
1.1.1.0/30 IS-IS 15 20
2.2.2.1 Ethernet5/0/0
2.2.2.0/30 DIRECT 0 0 2.2.2.2 Ethernet5/0/0
2.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
2.2.2.3/32 DIRECT 0 0 127.0.0.1 InLoopBack0
20.1.1.1/32 IS-IS 15 30 2.2.2.1 Ethernet5/0/0
30.1.1.1/32 IS-IS 15 20 2.2.2.1 Ethernet5/0/0
40.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
127.255.255.255/32 DIRECT 0 0 127.0.0.1 InLoopBack0
RTC是L2的路由器,能够学习到整网的路由。
查看RTB的isis路由表:
[rtb]display isis route
ISIS Level - 1 Forwarding Table :
Type - D -Direct, C -Connected, I -ISIS, S -Static, O -OSPF
B -BGP, R -RIP
Flags: R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
Destination/Mask In.Met Ex.Met NextHop Interface Flags
----------------------------------------------------------------
-----
D 1.1.1.0/30 10 Direct Ethernet4/1/0
R/L/-
D 2.2.2.0/30 10 Direct Ethernet5/0/0
R/L/-
I 20.1.1.1/32 20 1.1.1.1 Ethernet4/1/0
R/L/-
D 30.1.1.1/32 10 Direct LoopBack0
R/L/-
ISIS Level - 2 Forwarding Table :
Type - D -Direct, C -Connected, I -ISIS, S -Static, O -OSPF