Configure Multi-Chassis Link Aggregation (MLAG)
Configure Underlay Point-to-Point Interfaces
Configure Loopbacks for BGP Peering
Configure BGP Process for Underlay
Configure Underlay EBGP Neighbors
Configure Underlay IBGP Neighbors
Activating BGP
Enable EVPN Capability
Configure BGP EVPN Overlays - Leaf-to-Spine
Configure BGP EVPN Overlay - Spines-to-Leafs
Configure VXLAN Tunnel Endpoints (VTEP)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! L2EVPN
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> LEAF <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf 1 Physical Links and Loopback 0 Interface Configuration (Leaf1-Phy
configlet)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
interface Ethernet1
shutdown
interface Ethernet2
shutdown
interface Ethernet3
no switchport
ip address [Link]/30
interface Ethernet4
no switchport
ip address [Link]/30
interface Ethernet5
no switchport
ip address [Link]/30
interface Ethernet6
no switchport
ip address [Link]/30
interface Loopback0
ip address [Link]/32
!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf 1 eBGP Underlay Routing Configuration (Leaf1-eBGPUnderlay)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!
service routing protocols model multi-agent
!
ip routing
!
router bgp 65001
router-id [Link]
maximum-paths 4 ecmp 4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] description Spine1
neighbor [Link] description Spine2
neighbor [Link] description Spine3
neighbor [Link] description Spine4
neighbor SpineUnderlay remote-as 65100
neighbor SpineUnderlay maximum-routes 12000
address-family ipv4
network [Link]/32
neighbor SpineUnderlay activate
redistribute connected
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf1-eBGPOverlay Configlet:
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
router bgp 65001
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor SpineOVERLAY send-community extended
neighbor SpineOVERLAY ebgp-multihop 3
neighbor SpineOVERLAY remote-as 65100
neighbor SpineOVERLAY update-source loopback 0
neighbor SpineOVERLAY maximum-routes 0
neighbor [Link] description Spine1OVERLAY
neighbor [Link] description Spine2OVERLAY
neighbor [Link] description Spine3OVERLAY
neighbor [Link] description Spine4OVERLAY
address-family ipv4
no neighbor SpineOVERLAY activate
address-family evpn
neighbor SpineOVERLAY activate
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Configure MAC-VRFs for L2 EVPN
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
vlan 101
router bgp 65001
vlan 101
rd [Link]:10101
route-target both 101:10101
redistribute learned
no redistribute host-route
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Enable VXLAN Data Plane for L2 EVPN
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
interface vxlan 1
vxlan source-interface loopback 0
vxlan udp-port 4789
vxlan vlan 101 vni 10101
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Connecting Leaf to Host
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
vlan 101
interface e7
switchport
switchport mode access
switchport access vlan 101
spanning-tree portfast
no shut
interface vlan 101
ip address virtual [Link]/24
no autostate
ip virtual-router mac-address 001c.7300.0099
interface e8,9,10
shutdown
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> SPINE <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Spine 1 Physical Links and Loopback 0 interface Configuration (Spine1-Phy
configlet)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!
interface Ethernet1
shutdown
interface Ethernet2
shutdown
interface Ethernet3
no switchport
ip address [Link]/30
interface Ethernet4
no switchport
ip address [Link]/30
interface Ethernet5
no switchport
ip address [Link]/30
interface Ethernet6
no switchport
ip address [Link]/30
interface Ethernet7
no switchport
ip address [Link]/30
interface Ethernet8
no switchport
ip address [Link]/30
interface Loopback0
ip address [Link]/32
!
!-------------------------------------------------------------------
!-------------------------------------------------------------------
! Spine 1 eBGP Underlay Routing Configuration (Spine1-eBGPUnderlay)
!-------------------------------------------------------------------
!-------------------------------------------------------------------
service routing protocols model multi-agent
!
ip routing
!
router bgp 65100
router-id [Link]
maximum-paths 4 ecmp 4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor [Link] description Leaf1
neighbor [Link] remote-as 65001
neighbor [Link] maximum-routes 12000
neighbor [Link] description Leaf2
neighbor [Link] remote-as 65002
neighbor [Link] maximum-routes 12000
neighbor [Link] description Leaf3
neighbor [Link] remote-as 65003
neighbor [Link] maximum-routes 12000
neighbor [Link] description Leaf4
neighbor [Link] remote-as 65004
neighbor [Link] maximum-routes 12000
neighbor BorderleafUnderlay peer group
neighbor BorderleafUnderlay maximum-routes 12000
neighbor BorderleafUnderlay remote-as 65500
neighbor [Link] peer group BorderleafUnderlay
neighbor [Link] description Borderleaf1
neighbor [Link] peer group BorderleafUnderlay
neighbor [Link] description Borderleaf2
!
!
address-family ipv4
network [Link]/32
neighbor [Link] activate
neighbor [Link] activate
neighbor [Link] activate
neighbor [Link] activate
neighbor BorderleafUnderlay activate
redistribute connected
!----------------------------------------------------------------------------------
---------
!----------------------------------------------------------------------------------
---------
! Spine1-eBGPOverlay, Spine2-eBGPOverlay, Spine3-eBGPOverlay, Spine4-eBGPOverlay
Configlet:
!----------------------------------------------------------------------------------
---------
!----------------------------------------------------------------------------------
---------
router bgp 65100
neighbor [Link] peer group BorderleafOVERLAY
neighbor [Link] peer group BorderleafOVERLAY
neighbor [Link] remote-as 65001
neighbor [Link] send-community extended
neighbor [Link] ebgp-multihop 3
neighbor [Link] update-source loopback 0
neighbor [Link] maximum-routes 0
neighbor [Link] next-hop-unchanged
neighbor [Link] remote-as 65002
neighbor [Link] send-community extended
neighbor [Link] ebgp-multihop 3
neighbor [Link] update-source loopback 0
neighbor [Link] maximum-routes 0
neighbor [Link] next-hop-unchanged
neighbor [Link] remote-as 65003
neighbor [Link] send-community extended
neighbor [Link] ebgp-multihop 3
neighbor [Link] update-source loopback 0
neighbor [Link] maximum-routes 0
neighbor [Link] next-hop-unchanged
neighbor [Link] remote-as 65004
neighbor [Link] send-community extended
neighbor [Link] ebgp-multihop 3
neighbor [Link] update-source loopback 0
neighbor [Link] maximum-routes 0
neighbor [Link] next-hop-unchanged
neighbor BorderleafOVERLAY send-community extended
neighbor BorderleafOVERLAY ebgp-multihop 3
neighbor BorderleafOVERLAY remote-as 65500
neighbor BorderleafOVERLAY update-source loopback 0
neighbor BorderleafOVERLAY maximum-routes 0
neighbor BorderleafOVERLAY next-hop-unchanged
neighbor [Link] description Leaf1OVERLAY
neighbor [Link] description Leaf2OVERLAY
neighbor [Link] description Leaf3OVERLAY
neighbor [Link] description Leaf4OVERLAY
neighbor [Link] description Borderleaf1OVERLAY
neighbor [Link] description Borderleaf2OVERLAY
address-family ipv4
no neighbor [Link] activate
no neighbor [Link] activate
no neighbor [Link] activate
no neighbor [Link] activate
no neighbor BorderleafOVERLAY activate
address-family evpn
neighbor [Link] activate
neighbor [Link] activate
neighbor [Link] activate
neighbor [Link] activate
neighbor BorderleafOVERLAY activate
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> BorderLeaf <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Borderleaf 1 Physical Links and Loopback 0 Interface Configuration (Borderleaf1-
Phy configlet)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!
interface Ethernet1
shutdown
interface Ethernet2
shutdown
interface Ethernet3
no switchport
ip address [Link]/30
interface Ethernet4
no switchport
ip address [Link]/30
interface Ethernet5
no switchport
ip address [Link]/30
interface Ethernet6
no switchport
ip address [Link]/30
interface Loopback0
ip address [Link]/32
!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Borderleaf 1 eBGP Underlay Routing Configuration (BorderLeaf1-eBGPUnderlay)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
service routing protocols model multi-agent
!
ip routing
!
router bgp 65500
router-id [Link]
maximum-paths 4 ecmp 4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] peer group SpineUnderlay
neighbor [Link] description Spine1
neighbor [Link] description Spine2
neighbor [Link] description Spine3
neighbor [Link] description Spine4
neighbor SpineUnderlay remote-as 65100
neighbor SpineUnderlay maximum-routes 12000
address-family ipv4
network [Link]/32
neighbor SpineUnderlay activate
redistribute connected
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! BorderLeaf1-eBGPOverlay Configlet:
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
router bgp 65500
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor [Link] peer group SpineOVERLAY
neighbor SpineOVERLAY send-community extended
neighbor SpineOVERLAY ebgp-multihop 3
neighbor SpineOVERLAY remote-as 65100
neighbor SpineOVERLAY update-source loopback 0
neighbor SpineOVERLAY maximum-routes 0
neighbor [Link] description Spine1OVERLAY
neighbor [Link] description Spine2OVERLAY
neighbor [Link] description Spine3OVERLAY
neighbor [Link] description Spine4OVERLAY
address-family ipv4
no neighbor SpineOVERLAY activate
address-family evpn
neighbor SpineOVERLAY activate
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> HOST <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Host1-L2EVPN Configlet
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
vlan 101
interface e1
switchport
switchport mode access
switchport access vlan 101
interface vlan 101
ip address [Link]/24
no autostate
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
leaf1# show vxlan address-table
leaf1# show bgp evpn route-type imet vni 10101
leaf1# show bgp evpn route-type mac-ip vni 10101
leaf1# show l2Rib output vlan 101
leaf1# show mac address-table vlan 101
leaf1# show l2rib input bgp vlan 101
leaf1# show bgp evpn route-type mac-ip vni 10101 detail
leaf1# show bgp evpn route-type IMET detail
leaf1# show ip bgp neighbors [Link] advertised-routes
borderleaf1# show ip virtual-router vrf VRF-C
leaf1# show ip virtual-router vrf VRF-C
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Comandos Show
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
show interfaces status
show lldp neighbors
show interfaces trunk
show mlag
show mlag detail
show mlag interfaces
show bgp evpn route-type mac-ip vni 10101
show bgp evpn route-type mac-ip vni 10101 | inc mac-ip
show mac address-table vlan 101
show bgp evpn route-type imet vni 10101
show l2Rib output vlan 101
show l2rib input bgp vlan 101
show bgp evpn route-type mac-ip vni 10101 detail
show bgp evpn route-type IMET detail