46-高级路由:BGP 不同AS之间强制比较Metric

一、实验拓扑:
46-高级路由:BGP 不同AS之间强制比较Metric
二、实验要求:
1、R1处于AS1,和R3、R4建立BGP邻接;
2、R2部署增加Metric命令;
3、R4部署强制比较MED命令
4、验证:R4部署命令前和部署命令后的不同?

三、命令部署:
R2(config)#access-list 10 per
R2(config)#access-list 10 permit 3.3.3.0 0.0.0.255
R2(config)#route-map pl permit 10
R2(config-route-map)#match ip address 10
R2(config-route-map)#set metric 102
R2(config-route-map)#route-map pl permit 1000

R2(config)#router bgp 123
R2(config-router)#neighbor 24.1.1.4 route-map pl out

R4(config)#router bgp 4
R4(config-router)#bgp always-compare-med

四、验证:
1、接上个实验,未部署强制比较前
R4#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 2.2.2.0/24 14.1.1.1 4294967295 0 1 123 i

  • 3.3.3.0/24 14.1.1.1 4294967295 0 1 123 i
    *> 24.1.1.2 100 0 123 i
    R4#show ip bgp
    Network Next Hop Metric LocPrf Weight Path
  • 3.3.3.0/24 14.1.1.1 0 1 123 i
    *> 24.1.1.2 100 0 123 i

转载于:https://blog.51cto.com/13856092/2137794

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值