码迷,mamicode.com
首页 > 其他好文 > 详细

36-高级路由:BGP选路:优先级 R1:ACL或者全局默认

时间:2018-07-07 17:51:43      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:show   直连   water   ocp   ref   list   aac   默认   outer   

一、实验拓扑:
技术分享图片
二、实验要求:
基本要求:
1、R1、R2、R3部署EIGRP 90,通告各自网段,R1、R2与R4直连的网段不通告;
2、R1、R2、R3部署BGP AS 123,R4部署BGP AS 4;
3、R1、R2与R3通过环回口建立BGP邻接,与R4通过直连接口建立BGP邻接;R1、R2不建立BGP邻接;
高级要求:
1、用ACL抓取4.4.4.4 流量;

2、调用route-map并命名;
3、route-map 匹配ACL;
4、route-map下重新设置本地优先级;

5、R1在BGP下调用route-map pl out方向;
6、验证:R3上查看4.4.4.4路由条目是否是R1优先?

三、命令部署:
1、用ACL抓取4.4.4.4 流量
R1(config)#access-list 10 permit 4.4.4.0 0.0.0.255

2、调用route-map并命名
R1(config)#route-map pl permit 10

3、route-map 匹配ACL
R1(config-route-map)#match ip address 10

4、route-map下重新设置本地优先级
R1(config-route-map)#set local-preference 101

5、R1在BGP下调用route-map pl out方向
R1(config)#router bgp 123
R1(config-router)#neighbor 3.3.3.3 route-map pl out

四、验证:
R3#show ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i4.4.4.0/24 1.1.1.1 0 101 0 4 i

  • i 2.2.2.2 0 100 0 4 i

一、实验拓扑:
技术分享图片
二、实验要求:
1、R1在BGP进程下部署默认优先级命令,该命令属于全局配置,影响所有路由条目
2、验证:R3上所有的经过R1的路由条目优先级都为102?
三、命令部署:

R1(config)#router bgp 123
R1(config-router)#bgp default local-preference 102

四、验证:
R3#show ip bgp
Network Next Hop Metric LocPrf Weight Path
r>i1.1.1.0/24 1.1.1.1 0 102 0 i
*>i4.4.4.0/24 1.1.1.1 0 102 0 4 i

  • i 2.2.2.2 0 100 0 4 i
    *>i14.1.1.0/24 1.1.1.1 0 102 0 i

36-高级路由:BGP选路:优先级 R1:ACL或者全局默认

标签:show   直连   water   ocp   ref   list   aac   默认   outer   

原文地址:http://blog.51cto.com/13856092/2137634

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!