BGP Lab AS-path prepend last-as

Lab AS-Path prepend last-as

Platform:cisco iou

step 1:load config file(config.txt)

step 2:show ip bgp one the R4 去往 1.1.1.1 走R1,因为AS-Path比较短。


step 3:通过修改as-path影响R4选路。

R4:
router bgp 4
nei 14.1.1.1 route-map F1 in

route-map F1
set as-path prepend last-as 3

Last-as 意思是将离我最近的AS,将它的AS号在as-path里面再重复出现几次。这个10看起来可以和allowas-in里面的10对应起来。
假如as-path prepend 与as-path prepend last-as合用的时候,last-as先生效,然后prepend再生效。

扫描二维码关注公众号,回复: 10774542 查看本文章
发布了220 篇原创文章 · 获赞 2 · 访问量 4463

猜你喜欢

转载自blog.csdn.net/qq_43207781/article/details/105481105
BGP