Stefano’s notebook

my technical writings

EVPN and VXLAN Episode 4: Routing into and out of the EVPN network

In the previous episodes we discussed about how it is possible to route packets in and out of the fabric using an external routers with multiple legs into different VXLAN Layer 2 bridging domains, and we also talked about Asymmetric and Symmetric Integrated Routing and Bridging (IRB) to route the traffic between VXLAN domains.

But, what happens when we want to route from and to different “external” subnets from different Leafs? And how does this marry with Symmetric IRB, to allow better scalability?

Here is where Type-5 Routes start to play their role. As we previously stated, Type-5 Routes are used to announce entire subnets inside the EVPN Fabric - and the Symmetric IRB configuration is a foundation for that.

We defined a L3 VNI for our VRFs… and now, still using BGP, we can inject multiple routes into it.

Starting from the setup of the previous episode, let’s connect a Virtual Mikrotik CHR Router to an interface of our first Arista Leaf:


We will configure the Mikrotik to BGP peer with it, and to announce an external network/address (that we would configure on a loopback interface). Here’s the relevant config:

/interface bridge
add name=loopback protocol-mode=none

/ip address
add address= interface=ether1
add address= interface=loopback

/routing bgp instance
set default as=64999

/routing bgp network
add network=

/routing bgp peer
add name=ARISTA-1 remote-address= remote-as=65000

Let’s add the following statements to our Arista (Leaf-1) configuration:

interface Ethernet3
  no switchport
  description Link_to_CHR
  vrf TEST
  ip address
router bgp 65000
  vrf TEST
    neighbor remote-as 64999
    redistribute connected
    address-family ipv4
      neighbor activate

As you can see, we also set the “redistribute connected” statement: that configuration will announce a Type-5 Route also for the directly connected networks, including all the VXLAN interfaces subnets.

We can verify the routing table on Leaf-1:


We can see the related Type-5 announcement:


and the reflected entries on the Leaf-2 BGP EVPN table and routing table:



Of course, we expect a ping to work:


This has been quick! :-) But in the next episodes we’ll go deeper on the different deployment models, redundancy and scalability. Stay tuned!