router bgp 65000
bgp router-id 10.231.231.231
network 222.44.xx.xx/29
neighbor 10.129.129.129 remote-as 65000
neighbor 10.129.129.129 update-source 10.231.231.231
neighbor 10.129.129.129 next-hop-self
neighbor 172.16.99.201 remote-as 64556
neighbor 172.16.99.201 filter-list deny-as in
应用AS-path
!
定义AS-path-list 拒绝以AS-path xxxx结尾的路由
ip as-path access-list deny-as deny _64513$
ip as-path access-list deny-as deny _65100$
ip as-path access-list deny-as deny _64512$
ip as-path access-list deny-as deny _54549$
ip as-path access-list deny-as permit .*
最后一条为允许所有
时间: 2024-10-09 14:09:30