常用 if-match 条件
| 条件 | 匹配对象 | 典型场景 |
|---|---|---|
| ip-prefix | 网段与掩码范围 | 只对业务前缀做动作 |
| as-path-filter | AS_PATH 正则 | 按来源 AS 过滤 |
| community-filter | community 取值 | 按标记做策略 |
| tag | 路由标记 | 重分发防环 |
| route-type | 路由类型/协议来源 | 只对特定来源生效 |
组合示例
组合示例
route-policy RP-IN permit node 10
if-match ip-prefix PL-BIZ
if-match community-filter CF-CUST
apply local-preference 150节点命中后节点内 apply 动作全部执行,动作之间没有先后依赖。