| 语法 | ip as-path access-list <num> permit|deny <regex> |
|---|---|
| 应用 | neighbor <ip> filter-list <num> in|out |
| 匹配 | 顺序判断,命中即停 |
| 查看 | show ip bgp filter-list <num> |
定义与应用
定义与应用
ip as-path access-list 10 permit ^65002$
ip as-path access-list 10 deny .*
!
router bgp 65001
neighbor 10.0.0.2 filter-list 10 in
!
show ip bgp filter-list 10正则写宽会误杀:上线前用 show ip bgp filter-list 逐条核对命中集合。