EVPN with Symetric Routing Configuration Example

Configuration Notes

The topology is: Leaf1----ebgp-----Spine----ebgp----Leaf2.

The configurations show the BGP, OTM, and VLAN configuration with static and direct routes redistributed into EVPN at each leaf and advertised to the other leaf node.

OSPF runs between each router to provide routes to each loopback, which are tunnel endpoints.

Leaf 1 Configuration

#
# Module devmgr configuration.
#
configure snmp sysContact "support@extremenetworks.com, +1 888 257 3000"
configure sys-recovery-level switch reset
#
# Module vlan configuration.
#
create vr "vr1" type vrf vr "VR-Default" 
create vlan "loop1"
enable loopback-mode vlan loop1
create vlan "loopvr1" vr vr1
enable loopback-mode vlan loopvr1
create vlan "vlan48" vr vr1
configure vlan vlan48 tag 48
configure vlan vlan48 add ports 48 tagged  
configure vlan loop1 ipaddress 1.0.0.40 255.255.255.255
enable ipforwarding vlan loop1
configure vlan loopvr1new ipaddress 1.0.0.40 255.255.255.255
enable ipforwarding vlan loopvr1
configure vlan vlan48 ipaddress 192.168.48.1 255.255.255.0
enable ipforwarding vlan vlan48

#
# Module mcmgr configuration.
#
disable igmp snooping vlan "loopvr1new"
disable igmp snooping vlan "vlan48"

#
# Module otm configuration.
#
configure virtual-network local-endpoint ipaddress 1.0.0.40 vr "VR-Default" 
create virtual-network "vnetvr1" flooding standard
configure virtual-network "vnetvr1" vxlan vni 123 
configure virtual-network "vnetvr1" add vlan loopvr1new
create virtual-network "vr1_routing" flooding standard
configure virtual-network "vr1_routing" vxlan vni 678 
configure virtual-network "vr1_routing" add vlan vlan48
#
# Module fdb configuration.
#

#
# Module rtmgr configuration.
#

configure iproute add default 10.68.13.1 vr VR-Mgmt
configure iproute add 3.0.0.0 255.0.0.0 192.168.48.2 vr vr1
configure iproute add 2.0.0.0 255.0.0.0 192.168.48.2 vr vr1
configure iproute add 1.0.0.0 255.0.0.0 192.168.48.2 vr vr1


#
# Module bgp configuration.
#
configure bgp AS-number 40
configure bgp routerid 1.0.0.40
configure bgp add network 1.0.0.40/32
create bgp neighbor 192.168.99.2 remote-AS-number 38
enable bgp neighbor 192.168.99.2
enable bgp neighbor 192.168.99.2 capability l2vpn-evpn
enable bgp export direct address-family l2vpn-evpn vr vr1 
enable bgp export static address-family l2vpn-evpn vr vr1 
configure bgp evpn l3vni 123 vr vr1
enable bgp

#
# Module ospf configuration.
#
enable ospf
enable ospf export direct cost 0 type ase-type-1
configure ospf add vlan vlan99 area 0.0.0.0 

Leaf 2 Configuration

#
# Module vlan configuration.
#

configure vr VR-Default add ports 1,3-7,9-47,49,51-72
create vr "vr1" type vrf vr "VR-Default" 
create vlan "loop1"
enable loopback-mode vlan loop1
create vlan "loopvr1" vr vr1
enable loopback-mode vlan loopvr1
create vlan "vlan48" vr vr1
configure vlan vlan48 tag 48
create vlan "vlan66"
enable ipforwarding ipv6 vlan vlan66
configure vlan vlan66 tag 66
configure ports 1 auto off speed 10000 duplex full 
configure vlan vlan48 add ports 48 tagged  
configure vlan vlan66 add ports 2 tagged  
configure vlan loop1 ipaddress 1.0.0.25 255.255.255.255
enable ipforwarding vlan loop1
configure vlan loopvr1 ipaddress 1.0.0.25 255.255.255.255
enable ipforwarding vlan loopvr1
configure vlan vlan48 ipaddress 192.168.48.11 255.255.255.0
enable ipforwarding vlan vlan48
configure vlan vlan66 ipaddress 192.168.66.1 255.255.255.0
enable ipforwarding vlan vlan66

#
# Module mcmgr configuration.
#
disable igmp snooping vlan "loopvr1"
disable igmp snooping vlan "vlan48"
#
# Module otm configuration.
#
configure virtual-network local-endpoint ipaddress 1.0.0.25 vr "VR-Default" 
create virtual-network "vnetvr1" flooding standard
configure virtual-network "vnetvr1" vxlan vni 123 
configure virtual-network "vnetvr1" add vlan loopvr1new
create virtual-network "vr1_routing" flooding standard
configure virtual-network "vr1_routing" vxlan vni 679 
configure virtual-network "vr1_routing" add vlan vlan48

#
# Module fdb configuration.
#
#
# Module rtmgr configuration.
#
configure iproute add 103.0.0.0 255.0.0.0 192.168.48.99 vr vr1
configure iproute add 102.0.0.0 255.0.0.0 192.168.48.99 vr vr1
configure iproute add 101.0.0.0 255.0.0.0 192.168.48.99 vr vr1
#
# Module bgp configuration.
#
configure bgp AS-number 25
configure bgp routerid 1.0.0.25
configure bgp add network 1.0.0.25/32
create bgp neighbor 192.168.66.2 remote-AS-number 38
enable bgp neighbor 192.168.66.2
enable bgp neighbor 192.168.66.2 capability l2vpn-evpn
enable bgp export direct address-family l2vpn-evpn vr vr1 
enable bgp export static address-family l2vpn-evpn vr vr1 
configure bgp evpn l3vni 123 vr vr1
enable bgp
#
# Module ospf configuration.
#
enable ospf
enable ospf export direct cost 0 type ase-type-1
configure ospf add vlan vlan66 area 0.0.0.0 

Spine Configuration

#
# Module vlan configuration.
#
create vlan "loop1"
enable loopback-mode vlan loop1
create vlan "vlan99"
configure vlan vlan99 tag 99
create vlan "vlan66"
configure vlan vlan66 tag 66
configure vlan vlan99 add ports 2 tagged  
configure vlan vlan66 add ports 1 tagged  
configure vlan loop1 ipaddress 1.0.0.38 255.255.255.255
enable ipforwarding vlan loop1
configure vlan vlan99 ipaddress 192.168.99.2 255.255.255.0
enable ipforwarding vlan vlan99
configure vlan vlan66 ipaddress 192.168.66.2 255.255.255.0
enable ipforwarding vlan vlan66
#
# Module bgp configuration.
#
configure bgp AS-number 38
configure bgp routerid 1.0.0.38
configure bgp maximum-paths 2
enable bgp multipath-relax
create bgp neighbor 192.168.66.1 remote-AS-number 25
enable bgp neighbor 192.168.66.1
create bgp neighbor 192.168.99.1 remote-AS-number 40
enable bgp neighbor 192.168.99.1
enable bgp neighbor 192.168.66.1 capability l2vpn-evpn
enable bgp neighbor 192.168.66.1 address-family l2vpn-evpn next-hop-unchanged
enable bgp neighbor 192.168.99.1 capability l2vpn-evpn
enable bgp neighbor 192.168.99.1 address-family l2vpn-evpn next-hop-unchanged
enable bgp
#
# Module ospf configuration.
#
enable ospf
enable ospf export direct cost 0 type ase-type-1
configure ospf add vlan vlan99 area 0.0.0.0 
configure ospf add vlan vlan66 area 0.0.0.0