EVPN 環境において single-active mode を使用している場合、STP を設定していないにも関わらず STP TCN が EVPN の AC から送信されることが確認されていますが、これは期待動作です。
single-active mode では、DF Election アルゴリズムである Service Carving の update が発生すると、PE は Ethernet segment link である AC から CE に対して STP TCN を送信します。これにより、CEはMAC table を flush し、トラフィックを新しく選出された DF にリダイレクトします。
この MAC flush のための STP TCN によって CE で BPDU guard が発生してしまうなど、望ましくない動作を引き起こす場合、この STP TCN を disable にする mac-flush-message disable 設定が 7.11.2 以降で実装されています。以下設定例です。
evpn
evi 100
advertise-mac
!
!
interface Bundle-Ether1
ethernet-segment
identifier type 0 36.37.00.00.00.00.00.11.00
load-balancing-mode single-active
!
mac-flush-message disable
mac-flush-message disable 設定の確認は show evpn ethernet-segment detail で確認できます。
設定した場合には MAC Flush msg : Disabled であることが確認できます。
IOS-XR#show evpn ethernet-segment detail
Legend:
B - No Forwarders EVPN-enabled,
C - Backbone Source MAC missing (PBB-EVPN),
RT - ES-Import Route Target missing,
E - ESI missing,
H - Interface handle missing,
I - Name (Interface or Virtual Access) missing,
M - Interface in Down state,
O - BGP End of Download missing,
P - Interface already Access Protected,
Pf - Interface forced single-homed,
R - BGP RID not received,
S - Interface in redundancy standby state,
X - ESI-extracted MAC Conflict
SHG - No local split-horizon-group label allocated
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0036.3700.0000.0000.1100 BE1 10.1.1.1
-- snip --
MAC Flush msg : Disabled
未設定時は MAC Flush msg : STP-TCN となっています。
MAC Flush msg : STP-TCN
以下 cisco.com にも記載がありますので参考にしてください。
L2VPN and Ethernet Services Configuration Guide for Cisco NCS 540 Series Routers, IOS XR Release 24.1.x, 24.2.x, 24.3.x, 24.4.x
EVPN Single-Active Multi-Homing Mode
In single-active multihoming mode, only a single edge (PE) Router among a group of PE Routers attached to a host is allowed to send and recieve traffic on a given VLAN.
The single-active mode offers redundant connectivity for a VLAN on a single link at a time with failover to the second link in case the active link fails. The single-active mode directs the traffic to a single uplink. This mode is useful for network scenarios where policing, metering, and billing are required.
In Single-Active mode, Cisco IOS XR sends a topology change notification on the Ethernet segment links when a service carving update occurs, so that CEs flush their MAC tables and redirect traffic to the new DF-Elected PE.
Starting from Cisco IOS XR Release 7.11.2, the MAC flush message can be disabled for an Ethernet segment if it causes undesired behaviour at the CE, like triggering BPDU guard. Use the mac-flush-message disable command to disable the MAC flush messages.