联邦反射器

1234跑RIP,5678跑OSPF

BGP建邻

IBGP之间用环回建邻

EBGP之间用直连建邻(小AS号之间一定要写ebgp-max-hop,因为是类ebgp邻居)

bgp 64512
 confederation id 100
 confederation peer-as 64513
 peer 2.2.2.2 as-number 64512 
 peer 2.2.2.2 connect-interface LoopBack0
 peer 4.4.4.4 as-number 64513 
 peer 4.4.4.4 ebgp-max-hop 255 
 peer 4.4.4.4 connect-interface LoopBack0

在2和7上做反射器

bgp 64512
 ipv4-family unicast
  peer 1.1.1.1 reflect-client
  peer 3.3.3.3 reflect-client

 (真机上做了反射器,在RR端和客户端next-hop-local会失效,使用Route-Policy代替)

route-policy xx permit node 10 
 apply ip-address next-hop peer-address 
bgp 64512
peer 1.1.1.1 route-policy xx export
peer 3.3.3.3 route-policy xx export

R1访问8的环回走R5使用Preferred-value值

ip ip-prefix f index 10 permit 8.8.8.8 32
route-policy g permit node 10 
 if-match ip-prefix f 
 apply preferred-value 1
route-policy g permit node 20 

R8访问1的环回走R4用As-path

ip ip-prefix as index 10 permit 1.1.1.1 32
route-policy as permit node 10 
 if-match ip-prefix as 
 apply as-path 100 100 100 additive
route-policy as permit node 20 

9访问1走R8

ip ip-prefix med index 10 permit 1.1.1.1 32
route-policy med permit node 10 
 if-match ip-prefix med 
 apply cost 10 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值