Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
EVPN User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring EVPN with VLAN-Based Service

date_range 20-Dec-24

VLAN-based service supports the mapping of one or more routing instances of type EVPN to only one VLAN. There is only one bridge table that corresponds to the one VLAN. If the VLAN consists of multiple VLAN IDs (VIDs)—for example, there is a different VID per Ethernet segment on a provider edge device—then VLAN translation is required for packets that are destined to the Ethernet segment.

To configure VLAN-based service and Layer 3 routing with two EVPN routing instances on a provider edge device.

  1. Configure the first routing instance of type evpn named evpn1.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 instance-type
    evpn
  2. Configure the access interface for handling EVPN traffic.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 interface
    xe-0/0/8.100
  3. Configure a Layer 3 integrated and routing (IRB) interface for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 l3-interface
    irb.100
  4. Configure the Virtual Tunnel Endpoint interface for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 vtep-source-interface
    lo0.0
  5. Configure a VLAN identifier for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 vlan-id
    none
  6. Configure a route distinguisher for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 route-distinguisher
    1.2.3.11:1
  7. Configure the VPN routing and forwarding (VRF) target community for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 vrf-target
    target:1234:11
  8. Configure the encapsulation type for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 protocols
    evpn encapsulation vxlan
  9. Configure the VXLAN Network Identifier (VNI) for the evpn1 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn1 vxlan
    vni 100
  10. Configure the second routing instance of type evpn named evpn2:

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 instance-type
    evpn
  11. Configure the access interface on the provider edge device (PE) for handling EVPN traffic.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 interface
    xe-0/0/8.200
  12. Configure a Layer 3 integrated and routing (IRB) interface for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 l3-interface
    irb.200
  13. Configure the loopback address as the virtual tunnel endpoint source interface for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 vtep-source-interface
    lo0.0
  14. Configure the VLAN identifier for the evpn2 routing instance to be none.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 vlan-id
    none
  15. Configure a route distinguisher for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 route-distinguisher
    1.2.3.11:2
  16. Configure the VPN routing and forwarding (VRF) target community for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 vrf-target
    target:1234:24
  17. Configure the encapsulation type for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 protocols
    evpn encapsulation vxlan
  18. Configure the VXLAN Network Identifier (VNI) for the evpn2 routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances evpn2 vxlan
    vni 200
  19. Configure a VPN routing and forwarding (VRF) routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf instance-type
    vrf
  20. Configure the first of two integrated routing and bridging (IRB) interface for the vrf instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf interface
    irb.100
  21. Configure the second of two integrated routing and bridging (IRB) interface for the VPN routing and forwarding (VRF) instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf interface
    irb.200
  22. Configure the loopback interface for the vrf instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf interface
    lo0.1000
  23. Configure a unique route distinguisher for the VPN routing and forwarding (VRF) instance to identify from which EVPN the route belongs.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf route-distinguisher
    1.2.3.1:2
  24. Configure the VPN routing and forwarding (VRF) target community for the VPN routing and forwarding (VRF) routing instance.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf vrf-target
    target:2222:22
  25. Configure the auto-export option to automatically derive the route target.

    For example:

    content_copy zoom_out_map
    [edit]
    user@switch# set routing-instances vrf routing-options
    auto-export
footer-navigation