工具对照
| 功能 | Cisco | 华为 | FRR |
|---|---|---|---|
| 前缀匹配 | ip prefix-list | ip ip-prefix | ip prefix-list |
| AS 路径正则 | ip as-path access-list | ip as-path-filter | bgp as-path access-list |
| 社区匹配 | ip community-list | ip community-filter | bgp community-list |
| 综合策略 | route-map | route-policy | route-map |
| 分发过滤 | distribute-list | filter-policy | neighbor distribute-list |
FRR 示例
FRR 示例
router bgp 65001
address-family ipv4 unicast
neighbor 10.0.0.2 route-map RM-IN in
!
bgp as-path access-list ASP permit ^65002$
ip prefix-list PL permit 10.0.0.0/8 le 24名称相近不代表默认行为一致:隐式拒绝、匹配顺序等细节需分别核对。