-
使用Python实现画图工具以展示被汇总的静态路由
资源介绍
(1)用静态路由发布被汇总的路由
R4(config)#ip route 192.168.96.0 255.255.252.0 null0
(2)将静态路由重分布到 RIP 网络中
R4(config)#router rip
R4(config-router)#redistribute static //将静态路由重分布到 RIP 路由协议中
R4(config-router)#no network 192.168.96.0
R4(config-router)#no network 192.168.97.0
R4(config-router)#no network 192.168.98.0
R4(config-router)#no network 192.168.99.0
(3)在路由器 R1 上查看路由表
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.12.0/24 is directly connected, Serial0/0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:18, Serial0/0/0
R 192.168.34.0/24 [120/2] via 192.168.12.2, 00:00:18, Serial0/0/0
R 192.168.96.0/22 [120/3] via 192.168.12.2, 00:00:18, Serial0/0/0
通过输出不难看出 RIPv2 是可以传递 CIDR 汇总信息的。
4.3.3 实验 6:RIPv2 认证和触发更新