35-高级路由:BGP选路:权重值

一、实验拓扑:
35-高级路由:BGP选路:权重值35-高级路由:BGP选路:权重值
二、实验要求:
基本要求:
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、R3应用prefix-list pl抓取4.4.4.0/24路由网段;
2、调用route map 工具;
3、匹配prefix-list pl;
4、重新设置权重值:set weight 10;

5、R3在BGP下调用route-map pl in
6、验证:R3上的4.4.4.4条目未修改前最优路径是2.2.2.2;修改后最优路径是1.1.1.1。

三、命令部署:
R3(config)#ip prefix-list pl permit 4.4.4.0/24

R3(config)#route-map pl permit 10
R3(config-route-map)#match ip address prefix-list pl
R3(config-route-map)#set weight 10
R3(config-route-map)#route-map pl permit 1000
R3(config-route-map)#end

R3(config)#router bgp 123
R3(config-router)#neighbor 1.1.1.1 route-map pl in

四、验证:
1、未修改前:
R3#show ip bgp
Network Next Hop Metric LocPrf Weight Path

  • i4.4.4.0/24 1.1.1.1 0 100 0 4 i
    >i 2.2.2.2 0 100 0 4 I
    2、修改后:
    R3#show ip bgp
    Network Next Hop Metric LocPrf Weight Path
    >i4.4.4.0/24 1.1.1.1 0 100 10 4 i
  • i 2.2.2.2 0 100 0 4 i

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值