实验目的
熟悉配置重分发及汇总的设备需求。
熟练的掌握重分发及汇总的配置命令行。
实验拓扑
接口配置及ISIS配置详见:CSDNhttps://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的汇总已经完成。