首页 > 其他 > 详细

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

时间:2018-07-07 17:16:35      阅读:255      评论:0      收藏:0      [点我收藏+]
一、实验拓扑:
技术分享图片
二、实验要求:
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

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

原文:http://blog.51cto.com/13856092/2137794

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!