You can configure an Ethernet VPN (EVPN) with IRB solution
to enable Layer 2 switching and Layer 3 routing operations within
a single node, thus avoiding extra hops for inter-subnet traffic.
The EVPN IRB solution eliminates the default gateway problem using
the gateway MAC and IP synchronization, and avoids the triangular
routing problem with Layer 3 interworking by creating IP host routes
for virtual machines (VMs) in the tenant virtual routing and forwarding
(VRF) routing instances.
Before you begin:
Configure the switch interfaces.
Configure the router ID and autonomous system number for
the device.
Enable the chained composite next hop for EVPN.
Configure OSPF or any other IGP protocol.
Configure a BGP internal group.
Include the EVPN signaling network layer reachability
information (NLRI) to the internal BGP group.
Configure LDP.
Configure MPLS.
To configure the PE device:
- Configure the EVPN routing instance.
[edit routing-instances]
user@PE1# set evpn-instance instance-type evpn
- Set the VLAN identifier for the bridging domain in the
EVPN routing instance.
[edit routing-instances]
user@PE1# set evpn-instance vlan-id VLAN-ID
- Configure the interface name for the EVPN routing instance.
[edit routing-instances]
user@PE1# set evpn-instance interface CE-facing-interface
- Configure the IRB interface as the routing interface for
the EVPN routing instance.
[edit routing-instances]
user@PE1# set evpn-instance l3-interface irb.0
- Configure the route distinguisher for the EVPN routing
instance.
[edit routing-instances]
user@PE1# set evpn-instance route-distinguisher route-distinguisher-value
- Configure the VPN routing and forwarding (VRF) target
community for the EVPN routing instance.
[edit routing-instances]
user@PE1# set evpn-instance vrf-target vrf-target-value
- Assign the interface name that connects the PE device
site to the VPN.
[edit routing-instances]
user@PE1# set evpn-instance protocols evpn interface CE-facing-interface
- Configure the VRF routing instance.
[edit routing-instances]
user@PE1# set vrf-instance instance-type vrf
- Configure the IRB interface as the routing interface for
the VRF routing instance.
[edit routing-instances]
user@PE1# set vrf-instance interface irb.0
- Configure the route distinguisher for the VRF routing
instance.
[edit routing-instances]
user@PE1# set vrf-instance route-distinguisher route-distinguisher-value
- Configure the VRF label for the VRF routing instance.
[edit routing-instances]
user@PE1# set vrf-instance vrf-table-label
- Verify and commit the configuration.
For example:
[edit routing-instances]
user@PE1# set evpna instance-type evpn
user@PE1# set evpna vlan-id 10
user@PE1# set evpna interface ge-1/1/8.0
user@PE1# set evpna l3-interface irb.0
user@PE1# set evpna route-distinguisher 100.255.0.1:100
user@PE1# set evpna vrf-target target:100:100
user@PE1# set evpna protocols evpn interface ge-1/1/8.0
user@PE1# set vrf instance-type vrf
user@PE1# set vrf interface irb.0
user@PE1# set vrf route-distinguisher 100.255.0.1:300
user@PE1# set vrf vrf-target target:100:300
user@PE1# set vrf vrf-table-label
[edit]
user@PE1# commit
commit complete