BGP Lab AS-Path remove-private-as

Lab AS-Path remove-private-as


Platform:iou

R1+++++++++++++++++++++++++++++++++++++++++++++++++++++++
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.1 mask 255.255.255.255
 neighbor 12.1.1.2 remote-as 200
 no auto-summary

R2+++++++++++++++++++++++++++++++++++++++++++++++++++++

router bgp 200
 no synchronization
 bgp log-neighbor-changes
 network 2.2.2.2 mask 255.255.255.255
 neighbor 12.1.1.1 remote-as 100
 neighbor 12.1.1.1 remove-private-AS
 neighbor 23.1.1.3 remote-as 64512
 no auto-summary

R3+++++++++++++++++++++++++++++++++++++++++++++++++++++++

router bgp 64512
 no synchronization
 bgp log-neighbor-changes
 network 3.3.3.3 mask 255.255.255.255
 neighbor 23.1.1.2 remote-as 200
 no auto-summary

注意:Remove-private-as,如果在as-path里交替出现私有和公有的AS号,这样将无法将私有AS号去掉。在起源的时候,连续的时候才有效。
bgp bestpath as-path ignore(隐藏命令),这条命令可以使我们在选路时,跳过as-path的选路,直接往下继续选择最优路径。


 

posted @ 2020-04-14 08:11  cyrusxx  阅读(243)  评论(0编辑  收藏  举报