This document contains step by step on how to configure Layer2 trunk across Cisco XR interfaces with BVI as the sample from ASR9001.
Example: Trunk ASR to the other switch
1. Create Bundle-Interface with id 1 and 2 on ASR. BE1 is 2 x 10G interfaces, BE2 is 2 x 1G interfaces.
!
interface TenGigE0/0/2/2
description connection to ASR port Te0/0/2/2
bundle id 1 mode active
cdp
!
interface TenGigE0/0/2/3
description connection to ASR port Te0/0/2/3
bundle id 1 mode active
cdp
!
interface GigabitEthernet0/0/0/0
description BE2-link1
bundle id 2 mode active
negotiation auto
!
interface GigabitEthernet0/0/0/1
description BE2-link2
bundle id 2 mode active
negotiation auto
!
2. Tag VLAN315 to Bundle-Interface1 and Bundle-Interface2
!
interface Bundle-Ether1.315 l2transport
description Trunk-vlan315
encapsulation dot1q 315
rewrite ingress tag pop 1 symmetric
!
interface Bundle-Ether2.315 l2transport
description Trunk-vlan315
encapsulation dot1q 315
rewrite ingress tag pop 1 symmetric
!
3. Create BVI315. The BVI interface is used to accommodate like the interface VLAN in Cisco IOS.
!
interface BVI315
description Wireless-Interconnect
ipv4 address 10.16.1.1 255.255.255.0
!
4. Create l2-VPN BD to bridge the Ethernet Flow Point (EFP) and BVI together.
!
l2vpn
bridge group VLAN315
bridge-domain VLAN315
interface Bundle-Ether1.315
!
interface Bundle-Ether2.315
!
routed interface BVI315
!
!
Reference:
L2 Switching Configuration to XR L2VPN Configuration Conversion Process