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 router interfaces.
Configure the router ID and autonomous system number for
the device.
Enable 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 RSVP or LDP.
Configure MPLS.
Create a label-switched path between the provider edge
(PE) devices.
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 routing-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 routing-interface irb.0
user@PE1# set evpna route-distinguisher 192.0.2.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 192.0.2.1:300
user@PE1# set vrf vrf-target target:100:300
user@PE1# set vrf vrf-table-label
[edit]
user@PE1# commit
commit complete
To configure an ACX series router running Junos OS Evolved as
the PE device in an EVPN-ELAN vlan-based routing-instance with IRB, verify and
commit the following configuration:
[edit routing-instances]
user@PE1# set evpna instance-type mac-vrf
user@PE1# set evpna protocols evpn normalization
user@PE1# set evpna service-type vlan-based
user@PE1# set evpna route-distinguisher 192.0.2.1:100
user@PE1# set evpna vrf-target target:100:100
user@PE1# set evpna vlans v-500 vlan-id 10
user@PE1# set evpna vlans v-500 interface ae0.0
user@PE1# set evpna vlans v-500 l3-interface irb.0
[edit]
user@PE1# commit
commit complete