一、实验拓扑:
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

相关文章:

  • 2021-09-23
  • 2021-08-06
  • 2021-10-05
  • 2021-11-19
  • 2021-12-25
  • 2021-09-17
  • 2021-06-19
  • 2021-03-31
猜你喜欢
  • 2021-05-20
  • 2022-01-14
  • 2022-01-10
  • 2021-06-11
  • 2021-05-03
  • 2021-09-10
  • 2021-05-03
相关资源
相似解决方案