标签:config log gre vpd route via roc 51cto image
一、实验拓扑:三、命令部署:
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
标签:config log gre vpd route via roc 51cto image
原文地址:http://blog.51cto.com/13856092/2137583