はじめに
本ドキュメントは IOS-XR 6.0 以降で動作するルータを対象としています。
ESI の生成については、IOS-XR 6.0 以降から RFC7432 (BGP MPLS-Based Ethernet VPN) に準拠するように変更されており、
以下の図はデフォルトの ESI が生成される方法を示しています。

バージョン6.0 以降では、最初のバイトは常に Type(00)で、他の 9バイトが設定可能となります。
RP/0/RP0/CPU0:XR(config)#evpn interface bundle-Ether 100 ethernet-segment identifier type ?
0 Type 0 (arbitrary 9-octet ESI value)
EVPN マルチホームの設定
EVPN マルチホームとしてルータを動作させたい場合、双方の PE に ESI (Ethernet Segment Identifier ) を設定する
必要がありますが、PE-CE 間にて LACP が使用され、明示的に ESI を設定しない場合は、以下のように LACP 経由で
自動生成されます。
RP/0/RP0/CPU0:XR#show evpn ethernet-segment detail
Legend:
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
01c4.44a0.ee07.8000.6400 BE100 1.1.1.1
2.2.2.2
ES to BGP Gates : Ready
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether100
Interface MAC : 008a.963b.b0d9
IfHandle : 0x2000803c
State : Up
Redundancy : Not Defined
ESI type : 1
System-id : c444.a0ee.0780
Port key : 0064
ES Import RT : c444.a0ee.0780 (from ESI)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : MH, All-active
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
Multicast : Disabled
-- snip --
明示的に ESI を設定する場合、その ESI 値に起因してマルチホームとして動作しない場合があります。
以下のように、最初の 6バイトを 0 とした場合、ES Import RT が Incomplete Configuration となりマルチホームとして
動作しません。
[NG 例]
evpn
interface Bundle-Ether100
ethernet-segment
identifier type 0 00.00.00.00.00.00.00.00.01
RP/0/RP0/CPU0:XR#show evpn ethernet-segment detail
Legend:
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.0000.0000.0000.0001 BE100 1.1.1.1
ES to BGP Gates : M
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether100
Interface MAC : 008a.963b.b0d9
IfHandle : 0x2000803c
State : Down
Redundancy : Not Defined
ESI type : 0
Value : 00.0000.0000.0000.0001
ES Import RT : 0000.0000.0000 (Incomplete Configuration)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : SH
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
Multicast : Disabled
-- snip --
[OK 例]
evpn
interface Bundle-Ether100
ethernet-segment
identifier type 0 00.00.00.00.00.01.00.00.00
RP/0/RP0/CPU0:XR#show evpn ethernet-segment detail
Legend:
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.0000.0000.0100.0000 BE100 1.1.1.1
2.2.2.2
ES to BGP Gates : M
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether100
Interface MAC : 008a.963b.b0d9
IfHandle : 0x2000803c
State : Down
Redundancy : Not Defined
ESI type : 0
Value : 00.0000.0000.0100.0000
ES Import RT : 0000.0000.0001 (from ESI)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : MH,All-active
Configured : All-active (AApF) (default)
Service Carving : Auto-selection
Multicast : Disabled
-- snip --
もし、最初の 6 バイトを 0 として設定したい場合は、明示的に route-target を設定する必要があります。
evpn
interface Bundle-Ether100
ethernet-segment
identifier type 0 00.00.00.00.00.00.00.00.01
bgp route-target 0000.0000.0001
RP/0/RP0/CPU0:XR#show evpn ethernet-segment detail
Legend:
Ethernet Segment Id Interface Nexthops
------------------------ ---------------------------------- --------------------
0000.0000.0000.0000.0001 BE100 1.1.1.1
2.2.2.2
ES to BGP Gates : Ready
ES to L2FIB Gates : Ready
Main port :
Interface name : Bundle-Ether100
Interface MAC : 008a.963b.b0d9
IfHandle : 0x2000803c
State : Up
Redundancy : Not Defined
ESI type : 0
Value : 00.0000.0000.0000.0001
ES Import RT : 0000.0000.0001 (Local)
Source MAC : 0000.0000.0000 (N/A)
Topology :
Operational : MH, All-active
Configured : All-active (AApF) (default)
-- snip --
参考情報
L2VPN and Ethernet Services Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 7.9.x
ASR 9000でのPBB-EVPN ESI、ESインポートRTとソースMACの不一致のトラブルシューティング