打破ibgp的水平分割 RR 联邦 团体属性

我们知道 一台路由器通告一条路由给ibgp邻居,邻居只能把路由发送给ebgp对等体,避免环路产生。解决:full mesh

使用star 结构,都跟star来建邻居

使用路由反射器 针对ibgpr所执行的架构 称为cluster集群
ibgp邻居关系才能建立路由反射器
client–路由给–server,它能反射给所有client 和 non-client

通过non-client收到路由 只能反射给client

在这里插入图片描述

实验 奖r2与r4的连接给shutdown

r1做客户端

r3做server

r3
router bgp 10 
neighbor 1.1.1.1 route-reflector-client

联邦

把一个as逻辑的分成若干个子as

在这里插入图片描述

r1
router bgp 64513 no auto-summry no shnchronization bgp router-id 1.1.1.1 bgp confederation identifier 10 neighbor 12.1.1.2 remote-as 2 neighbor 3.3.3.3 remote-as 64513 neighbor 3.3.3.3 update-source loopback 0 neighbor 3.3.3.3 next-hop-self
r3

`router bgp 64513
no auto-summry
no shnchronization
bgp router-id 3.3.3.3 
bgp confederation identifier 10
neighbor 1.1.1.1 remote-as 64513
neighbor 1.1.1.1 update-source loopback 0
bgp confederation peers 64504
neighbor 4.4.4.4 remoet-as 64504
neighbor 4.4.4.4 update-source loopback 0
neighbor 4.4.4.4 ebgp-multihop 2
neighbor 35.1.1.5 remote-as 5

r4

router bgp 64504
no auto-summry
no shnchronization

neighbor 3.3.3.3 remote-as 64513
bgp confederation identifier 10
bgp confederation peers  64513 
neighbor 3.3.3.3 update-source loopback0
neighbor 3.3.3.3 ebgp-multihop 

提升路由传递的能力,尽可能减少ibgp邻居关系的数量,减少消耗。

srever端 会产生cluster-id ,一台路由反射器的server接收到一条ibgp路由 会优先查看cluster-id 是否包含我自身的id, 有就丢弃

团体属性 (默认不允许)需要在控制层面路由流向的沿途每一下都针对该路由的一下跳开启团体属性

标准:相当于tag ,
no advertise no export local-as

扩展
可以做rt sso

打属性

ip prefix-list 2 seq 10 permit 2.2.2.0/24 
route-map c permit 10 
match ip address prefix-list 2
set community 2:2 exit
route-map c permit 20
exit
router bgp 2
neighbor 12.1.1.1 route-map c out 
neighbor 12.1.1.1 send-coummnity 

r1 ip bgp-coummunity new-format

猜你喜欢

转载自blog.csdn.net/weixin_45821358/article/details/106364905
rr