BGP路由汇总
作者:互联网
把R1产生的路由跟R2产生的路由通过R3汇总为一条路由发布到R4
拓扑图如下图
R1
interface LoopBack0
ip address 192.168.1.1 255.255.255.0
#
interface LoopBack1
ip address 192.168.2.1 255.255.255.0
#
bgp 1
peer 10.1.13.3 as-number 3
#
ipv4-family unicast
undo synchronization
network 192.168.1.0
network 192.168.2.0
peer 10.1.13.3 enable
R2
interface LoopBack0
ip address 192.168.3.1 255.255.255.0
#
interface LoopBack1
ip address 192.168.4.1 255.255.255.0
#
bgp 2
peer 10.1.23.3 as-number 3
#
ipv4-family unicast
undo synchronization
network 192.168.3.0
network 192.168.4.0
peer 10.1.23.3 enable
R3
bgp 3
peer 10.1.13.1 as-number 1
peer 10.1.23.2 as-number 2
peer 10.1.34.4 as-number 4
#
ipv4-family unicast
undo synchronization
aggregate 192.168.0.0 255.255.248.0 as-set detail-suppressed
peer 10.1.13.1 enable
peer 10.1.23.2 enable
peer 10.1.34.4 enable
as-set 表示集成明细路由的AS_path
detail-suppressed 表示抑制明细路由
R4
bgp 4
peer 10.1.34.3 as-number 3
#
ipv4-family unicast
undo synchronization
peer 10.1.34.3 enable
当R4的BGP路由表只出现医疗路由时说明配置成功
有疑问或者问题欢迎评论区讨论
标签:10.1,enable,汇总,number,192.168,BGP,peer,路由 来源: https://blog.csdn.net/WLxiaobaicai/article/details/122707756