一、实验拓扑:
二、实验要求:
1、R1部署192.168.8.1~192.168.11.1环回口;
2、R1在BGP进程下通告上述明细环回口路由;
3、R1上部署汇聚命令:aggregate-address 192.168.8.0 255.255.252.0
4、R1上部署汇聚命令:aggregate-address 192.168.8.0 255.255.252.0 summary-only
5、验证:R1部署汇总命令后,R2是否有汇总路由、明细路由?
6、验证:R1部署汇总命令后summary-only,R2是否有明细路由?
三、命令部署: 1、R1在BGP进程下通告192.168.8.0~192.168.11.0网段: R1(config)#router bgp 1 R1(config-router)#network 192.168.8.0 mask 255.255.255.0 R1(config-router)#network 192.168.9.0 mask 255.255.255.0 R1(config-router)#network 192.168.10.0 mask 255.255.255.0 R1(config-router)#network 192.168.11.0 mask 255.255.255.0
2、R1在BGP进程下部署汇聚命令: R1(config)#router bgp 1 R1(config-router)#aggregate-address 192.168.8.0 255.255.252.0
3、R1在BGP进程下部署汇聚命令summary-only R1(config)#router bgp 1 R1(config-router)#aggregate-address 192.168.8.0 255.255.252.0 summary-only
四、验证: 1、验证:R2有明细和汇总: R2#show ip route bgp B 192.168.8.0/24 [20/0] via 12.1.1.1, 00:02:14 B 192.168.9.0/24 [20/0] via 12.1.1.1, 00:01:43 B 192.168.10.0/24 [20/0] via 12.1.1.1, 00:01:43 B 192.168.11.0/24 [20/0] via 12.1.1.1, 00:01:43 B 192.168.8.0/22 [20/0] via 12.1.1.1, 00:02:14
2、验证:R2只有汇总: R2#show ip route bgp B 192.168.8.0/22 [20/0] via 12.1.1.1, 00:04:15