Date created: Monday, September 11, 2023 9:23:21 AM. Last modified: Monday, November 6, 2023 4:51:55 PM

Basic EVPN

References:
https://www.arista.com/en/support/toi/eos-4-27-2f/14920-mac-limit-per-vlan
https://www.arista.com/en/support/toi/eos-4-25-0f/14053-l2-protocol-forwarding

 

L2 Transparency

In order for various types of frames/packets to be passed transparently over the service (and not CPU punted), the following is required:

! IGMP snooping can only be disabled globally:
no ip igmp snooping
!
l2-protocol
 forwarding profile FULL_TRANSPARENCY
 bfd per-link rfc-7130 forward
 e-lmi forward
 isis forward
 lacp forward
 lldp forward
 macsec forward
 pause forward
 stp forward

 

Example with VLAN Tagged Sub-Interface

The VLAN tag on the sub-interface can be different to the internal bridge inside the router. In this case, specify the internal bridge / broadcast domain as the VLAN ID under the interface, and the VLAN to be used for tragging frames on the wire towards the customer, as the client dot1q number:

    no ip igmp snooping
    !
    l2-protocol
       forwarding profile PASS_ALL_THE_SHIT
          bfd per-link rfc-7130 forward
          e-lmi forward
          isis forward
          lacp forward
          lldp forward
          macsec forward
          pause forward
          stp forward
    !
    vlan 2
       name internal_bridge_vlan
       ! no mac address learning ! Uncomment to disable MAC learning, then all traffic is flooded
    !
    interface Ethernet1.123
       vlan id 2
       !
       encapsulation vlan
          client dot1q 123
       shape rate 10000000 burst-size 1024 bytes ! egress shaper
    !
    router bgp 65535
       vlan 2 ! The Internal bridge/VLAN
          rd 65535:2
          route-target both 65535:2
          redistribute learned ! Advertise local MACs as EVPN Type 2 routes

 

By default EOS will advertise routes with an ESI of all zero's:

r1#show bgp evpn route-type mac-ip 10.0.0.201 detail 
BGP routing table information for VRF default
Router identifier 10.0.0..2, local AS number 65535
BGP routing table entry for mac-ip 0000.0000.b835 10.0.0.201, Route Distinguisher: 65535:2
 Paths: 1 available
  Local
    10.0.0.4 from 10.0.0.4 (10.0.0.4)
      Origin IGP, metric -, localpref 100, weight 0, tag 0, valid, internal, best
      Extended Community: Route-Target-AS:65535:1 Route-Target-AS:65535:2 TunnelEncap:tunnelTypeMpls DefaultGateway EvpnMacMobility:sticky
      MPLS label: 1046284 L3 MPLS label: 116384 ESI: 0000:0000:0000:0000:0000