IS-IS的汇总及重分发 配置与详解

本文旨在通过实验方式详细讲解IS-IS协议中的路由汇总与重分发操作。实验目标包括理解设备需求、掌握配置命令,拓扑涉及多个路由器节点,通过配置接口与ISIS,验证不同节点是否成功学习到外部路由,并通过调整设备类型、宣告loopback接口,进行路由汇总的实践,确保路由信息在路由器之间正确传播。
摘要由CSDN通过智能技术生成

实验目的

熟悉配置重分发及汇总的设备需求。

熟练的掌握重分发及汇总的配置命令行。

实验拓扑

 接口配置及ISIS配置详见:CSDNicon-default.png?t=N7T8https://mp.csdn.net/mp_blog/creation/editor/125235148

R1(config)#interface loopback 100
R1(config-if)#ip address 100.100.100.100 255.255.255.0
R1(config-if)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary 
R1(config-router)#network 100.0.0.0
R1(config)#router isis
R1(config-router)#is-type level-2
R1(config-router)#router isis 
R1(config-router)#redistribute rip

确认R2 R3 是否学习了外部路由。

R2#show ip route isis
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/20] via 123.123.123.1, FastEthernet0/0
     35.0.0.0/24 is subnetted, 1 subnets
i L1    35.35.35.0 [115/20] via 123.123.123.3, FastEthernet0/0
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/10] via 123.123.123.1, FastEthernet0/0
//如上表明R1的重分发已经成功  
…………………………
R3#show ip route isis 
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/20] via 123.123.123.1, FastEthernet0/0
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/10] via 123.123.123.1, FastEthernet0/0
//如上表明R1的重分发已经成功  
………………………………

R6修改为L1 设备,同时创建loopback 66模拟66.66.66.0/24网络,将其宣告进RIP,并且完成重分发配置:

R6(config)#router isis
R6(config-router)#is-type level-1
R6(config)#interface loopback 0
R6(config-if)#ip address 66.66.66.66 255.255.255.0
R6(config-if)#router rip
R6(config-router)#version 2
R6(config-router)#no auto-summary 
R6(config-router)#network 66.0.0.0
R6(config-router)#router isis
R6(config-router)#redistribute rip level-1
//如上命令帮助我们将外部RIP网络以L1的形式带入IS-IS

R5上校验路由表是否学习到66.66.66.0/24的外部路由:

R5#show ip route isis 
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/30] via 35.35.35.3, FastEthernet0/1
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/20] via 35.35.35.3, FastEthernet0/1
     4.0.0.0/24 is subnetted, 1 subnets
i L2    4.4.4.0 [115/40] via 35.35.35.3, FastEthernet0/1
     66.0.0.0/24 is subnetted, 1 subnets
i L1    66.66.66.0 [115/20] via 56.56.56.6, FastEthernet0/0
//实际上L1设备已经完成重分发,但是重分发的时候需要指定外部路由类型为LEVEL-1  
     24.0.0.0/24 is subnetted, 1 subnets
i L2    24.24.24.0 [115/30] via 35.35.35.3, FastEthernet0/1
     123.0.0.0/24 is subnetted, 1 subnets
i L2    123.123.123.0 [115/20] via 35.35.35.3, FastEthernet0/1

R1上创建出loopback 111模拟111.111.111.0/24,将其带入IS-IS,并且尝试汇总,观察结果:

R1(config)#interface loopback 111
R1(config-if)#ip address 111.111.111.111 255.255.255.0
R1(config-if)#ip router isis
R1(config-if)#router isis
R1(config-router)#summary-address 111.0.0.0 255.0.0.0
//如上命令完成了IS-IS网络的手动汇总

R2 查看路由表,是否接收到汇总路由。

R2#show ip route isis
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/20] via 123.123.123.1, FastEthernet0/0
     35.0.0.0/24 is subnetted, 1 subnets
i L1    35.35.35.0 [115/20] via 123.123.123.3, FastEthernet0/0
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/10] via 123.123.123.1, FastEthernet0/0
     4.0.0.0/24 is subnetted, 1 subnets
i L2    4.4.4.0 [115/20] via 24.24.24.4, FastEthernet0/1
     66.0.0.0/24 is subnetted, 1 subnets
i L2    66.66.66.0 [115/40] via 123.123.123.3, FastEthernet0/0
i L2 111.0.0.0/8 [115/20] via 123.123.123.1, FastEthernet0/0
//如上现象表明R1的L2 角色设备已经成功的完成了手动汇总。 
     56.0.0.0/24 is subnetted, 1 subnets
i L2    56.56.56.0 [115/30] via 123.123.123.3, FastEthernet0/0

R6上创建出loopback 166模拟166.166.166.0/24,宣告进IS-IS,将其手动汇总,观察结果。

R6(config)#interface loopback 166
R6(config-if)#ip  address 166.166.166.166 255.255.255.0
R6(config-if)#ip router isis
R6(config-if)#router isis
R6(config-router)#summary-address 166.0.0.0 255.0.0.0 level-1
//如上命令行完成了R6上内部网络的手动汇总,且将汇总后路由类型改为L1

R5上查看路由表确认汇总路由是否接受。

R5#show ip route isis 
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/30] via 35.35.35.3, FastEthernet0/1
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/20] via 35.35.35.3, FastEthernet0/1
     4.0.0.0/24 is subnetted, 1 subnets
i L2    4.4.4.0 [115/40] via 35.35.35.3, FastEthernet0/1
     66.0.0.0/24 is subnetted, 1 subnets
i L1    66.66.66.0 [115/20] via 56.56.56.6, FastEthernet0/0
     24.0.0.0/24 is subnetted, 1 subnets
i L2    24.24.24.0 [115/30] via 35.35.35.3, FastEthernet0/1
i L2 111.0.0.0/8 [115/30] via 35.35.35.3, FastEthernet0/1
     123.0.0.0/24 is subnetted, 1 subnets
i L2    123.123.123.0 [115/20] via 35.35.35.3, FastEthernet0/1
     166.166.0.0/24 is subnetted, 1 subnets
i L1    166.166.166.0 [115/20] via 56.56.56.6, FastEthernet0/0
//如上现象表明汇总并未成功。

R6 loopback 166以外部路由L1形式进入IS-IS,并且再完成后动汇总。

R6(config)#interface loopback 166
R6(config-if)#no ip router isis
R6(config-if)#router isis
R6(config-router)#redistribute connected level-1
R6(config-router)#summary-address 166.0.0.0 255.0.0.0 level-1

R5上校验路由表,查看是否得到汇总后路由。

R5#show ip route isis 
     1.0.0.0/24 is subnetted, 1 subnets
i L2    1.1.1.0 [115/30] via 35.35.35.3, FastEthernet0/1
     100.0.0.0/24 is subnetted, 1 subnets
i L2    100.100.100.0 [115/20] via 35.35.35.3, FastEthernet0/1
     4.0.0.0/24 is subnetted, 1 subnets
i L2    4.4.4.0 [115/40] via 35.35.35.3, FastEthernet0/1
     66.0.0.0/24 is subnetted, 1 subnets
i L1    66.66.66.0 [115/20] via 56.56.56.6, FastEthernet0/0
     24.0.0.0/24 is subnetted, 1 subnets
i L2    24.24.24.0 [115/30] via 35.35.35.3, FastEthernet0/1
i L2 111.0.0.0/8 [115/30] via 35.35.35.3, FastEthernet0/1
     123.0.0.0/24 is subnetted, 1 subnets
i L2    123.123.123.0 [115/20] via 35.35.35.3, FastEthernet0/1
i L1 166.0.0.0/8 [115/10] via 56.56.56.6, FastEthernet0/0
//这里表明R6的汇总已经完成。 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值