Skip to content

L2 VFI

L2 Virtual Forwarding Instance (VFI) provides VPLS (Virtual Private LAN Service) capabilities for creating Layer 2 VPN services over MPLS networks. VFI creates a virtual bridge domain that allows multiple geographically distributed sites to appear as if they are on the same LAN, enabling transparent Layer 2 connectivity across WAN infrastructure. This technology supports manual neighbor configuration, autodiscovery for dynamic peer relationships, and point-to-point connections, providing flexibility for various network topologies. VFI with VPLS is commonly used for data center interconnect, transparent LAN extension across sites, and delivering Ethernet services for multi-site enterprise deployments.

Diagram
NameTypeConstraintMandatoryDefault Value
l2_vfiClass[l2_vfi]No

NameTypeConstraintMandatoryDefault Value
nameStringYes
modeChoiceautodiscovery, manual, point-to-pointNo
vpn_idIntegermin: 1, max: 4294967295No
neighborsList[neighbors]No

neighbors (iosxe.devices.configuration.l2_vfi)

Section titled “neighbors (iosxe.devices.configuration.l2_vfi)”
NameTypeConstraintMandatoryDefault Value
ip_addressIPYes
encapsulationChoicel2tpv3, mplsNo

iosxe:
devices:
- name: Device1
configuration:
l2_vfi:
name: TENANT-A
mode: manual
vpn_id: 20001
neighbors:
- ip_address: 172.16.255.2
encapsulation: mpls
iosxe:
devices:
- name: CoreRouter
configuration:
l2_vfi:
# Primary site VFI for multi-site VPLS
name: CORPORATE-LAN
mode: manual
vpn_id: 10001
neighbors:
- ip_address: 10.1.1.1
encapsulation: mpls
- ip_address: 10.1.1.2
encapsulation: mpls
- ip_address: 10.1.1.3
encapsulation: mpls
iosxe:
global:
variables:
vfi_name: TENANT-A
vpn_id: 20001
neighbor_ip: 172.16.255.2
devices:
- name: Device1
configuration:
l2_vfi:
name: ${vfi_name}
mode: manual
vpn_id: ${vpn_id}
neighbors:
- ip_address: ${neighbor_ip}
encapsulation: mpls