Skip to content

L2VPN EVPN Profile

L2VPN EVPN profiles provide a template-based configuration approach for Ethernet VPN deployments, allowing administrators to define reusable profiles with base EVI (Ethernet Virtual Instance) and L2VNI (Layer 2 Virtual Network Identifier) values. These profiles simplify the configuration and management of EVPN services across multiple VLANs by establishing common parameters that can be referenced throughout the network configuration. By using profiles, network operators can ensure consistent EVPN settings, reduce configuration errors, and streamline the deployment of VXLAN-based overlay networks in data center and campus environments.

Diagram
NameTypeConstraintMandatoryDefault Value
evpn_profileClass[evpn_profile]No

evpn_profile (iosxe.devices.configuration)

Section titled “evpn_profile (iosxe.devices.configuration)”
NameTypeConstraintMandatoryDefault Value
profilesList[profiles]No

profiles (iosxe.devices.configuration.evpn_profile)

Section titled “profiles (iosxe.devices.configuration.evpn_profile)”
NameTypeConstraintMandatoryDefault Value
nameStringYes
evi_baseIntegermin: 0, max: 65535No
l2vni_baseIntegermin: 4096, max: 16777215No

iosxe:
devices:
- name: Device1
configuration:
evpn_profile:
profiles:
- name: DC_PROFILE_1
evi_base: 1000
l2vni_base: 10000
- name: CAMPUS_PROFILE
evi_base: 2000
l2vni_base: 20000
- name: BRANCH_PROFILE
evi_base: 3000
l2vni_base: 30000

Once L2VPN EVPN profiles are defined, they can be referenced by VLANs to automatically derive EVI and L2VNI values:

iosxe:
devices:
- name: Device1
configuration:
evpn_profile:
profiles:
- name: DATACENTER_PROFILE
evi_base: 1000
l2vni_base: 100000
vlans:
- id: 100
name: SERVERS_VLAN
evpn_instance_profile: DATACENTER_PROFILE # References the profile
# EVI will be 1100 (1000 + 100)
# L2VNI will be 100100 (100000 + 100)
- id: 200
name: STORAGE_VLAN
evpn_instance_profile: DATACENTER_PROFILE # References the same profile
# EVI will be 1200 (1000 + 200)
# L2VNI will be 100200 (100000 + 200)
iosxe:
devices:
- name: DC1-Leaf-01
configuration:
evpn_profile:
profiles:
# Profile for production workloads
- name: PROD_EVPN_PROFILE
evi_base: 10000
l2vni_base: 100000
# Profile for development/test workloads
- name: DEV_EVPN_PROFILE
evi_base: 20000
l2vni_base: 200000
# Profile for shared services
- name: SHARED_SERVICES_PROFILE
evi_base: 30000
l2vni_base: 300000