一、实验拓扑:
39-高级路由:BGP AS长度:R2入站方向增加
二、实验要求:
1、R2入站方向上部署set as-path prepend,使得4.4.4.0网段进入R2是增加AS长度;
2、验证:R3上关于4.4.4.0条目最优路径是否是R1?
三、命令部署:
R2(config)#access-list 10 permit 4.4.4.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 as-path prepend 5 6 7 8
R2(config-route-map)#route-map pl permit 1000

R2(config)#router bgp 123
R2(config-router)#neighbor 14.1.1.4 route-map pl in

四、验证:
R2#show ip bgp
Network Next Hop Metric LocPrf Weight Path
**> 4.4.4.0/24 24.1.1.4 0 0 5 6 7 8 4 I

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 5 6 7 8 4 i

39-高级路由:BGP AS长度:R2入站方向增加

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

相关文章:

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