| set tag | route-map 中给引入的路由打标记 |
|---|---|
| match tag | 回引 route-map 中按标记拒绝或放行 |
| 生效范围 | 本地重分发点,不随 BGP 传播 |
| 典型值 | 用 AS 号或规划好的十进制标记 |
OSPF 侧打标与回拒
OSPF 侧打标与回拒
route-map RM-BGP2OSPF permit 10
set tag 500
!
router ospf 1
redistribute bgp 65001 subnets route-map RM-BGP2OSPF
!
route-map RM-OSPF2BGP deny 10
match tag 500
!
show ip ospf database externalBGP 没有 tag 属性:tag 只在引入瞬间供本机策略判断,不会随 BGP 邻居传播到远端。