Configuring EVPN with VLAN-Based Service
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.
- Configure the first routing instance of type
evpn
namedevpn1
.For example:
[edit] user@switch# set routing-instances evpn1 instance-type evpn
- Configure the access interface for handling EVPN traffic.
For example:
[edit] user@switch# set routing-instances evpn1 interface xe-0/0/8.100
- Configure a Layer 3 integrated and routing (IRB) interface
for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 l3-interface irb.100
- Configure the Virtual Tunnel Endpoint interface for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 vtep-source-interface lo0.0
- Configure a VLAN identifier for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 vlan-id none
- Configure a route distinguisher for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 route-distinguisher 1.2.3.11:1
- Configure the VPN routing and forwarding (VRF) target
community for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 vrf-target target:1234:11
- Configure the encapsulation type for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 protocols evpn encapsulation vxlan
- Configure the VXLAN Network Identifier (VNI) for the
evpn1
routing instance.For example:
[edit] user@switch# set routing-instances evpn1 vxlan vni 100
- Configure the second routing instance of type
evpn
namedevpn2
:For example:
[edit] user@switch# set routing-instances evpn2 instance-type evpn
- Configure the access interface on the provider edge device
(PE) for handling EVPN traffic.
For example:
[edit] user@switch# set routing-instances evpn2 interface xe-0/0/8.200
- Configure a Layer 3 integrated and routing (IRB) interface
for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 l3-interface irb.200
- Configure the loopback address as the virtual tunnel endpoint
source interface for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 vtep-source-interface lo0.0
- Configure the VLAN identifier for the
evpn2
routing instance to benone
.For example:
[edit] user@switch# set routing-instances evpn2 vlan-id none
- Configure a route distinguisher for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 route-distinguisher 1.2.3.11:2
- Configure the VPN routing and forwarding (VRF) target
community for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 vrf-target target:1234:24
- Configure the encapsulation type for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 protocols evpn encapsulation vxlan
- Configure the VXLAN Network Identifier (VNI) for the
evpn2
routing instance.For example:
[edit] user@switch# set routing-instances evpn2 vxlan vni 200
- Configure a VPN routing and forwarding (VRF) routing instance.
For example:
[edit] user@switch# set routing-instances vrf instance-type vrf
- Configure the first of two integrated routing and bridging
(IRB) interface for the
vrf
instance.For example:
[edit] user@switch# set routing-instances vrf interface irb.100
- Configure the second of two integrated routing and bridging
(IRB) interface for the VPN routing and forwarding (VRF) instance.
For example:
[edit] user@switch# set routing-instances vrf interface irb.200
- Configure the loopback interface for the
vrf
instance.For example:
[edit] user@switch# set routing-instances vrf interface lo0.1000
- Configure a unique route distinguisher for the VPN routing
and forwarding (VRF) instance to identify from which EVPN the route
belongs.
For example:
[edit] user@switch# set routing-instances vrf route-distinguisher 1.2.3.1:2
- Configure the VPN routing and forwarding (VRF) target
community for the VPN routing and forwarding (VRF) routing instance.
For example:
[edit] user@switch# set routing-instances vrf vrf-target target:2222:22
- Configure the
auto-export
option to automatically derive the route target.For example:
[edit] user@switch# set routing-instances vrf routing-options auto-export