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
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxe.devices)
Section titled “configuration (iosxe.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| evpn_profile | Class | [evpn_profile] | No |
evpn_profile (iosxe.devices.configuration)
Section titled “evpn_profile (iosxe.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| profiles | List | [profiles] | No |
profiles (iosxe.devices.configuration.evpn_profile)
Section titled “profiles (iosxe.devices.configuration.evpn_profile)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| name | String | Yes | ||
| evi_base | Integer | min: 0, max: 65535 | No | |
| l2vni_base | Integer | min: 4096, max: 16777215 | No |
Examples
Section titled “Examples”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: 30000Using L2VPN EVPN Profiles with VLANs
Section titled “Using L2VPN EVPN Profiles with VLANs”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)Real-World Multi-Site Deployment Example
Section titled “Real-World Multi-Site Deployment Example”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