0% found this document useful (0 votes)
14 views21 pages

EVPN and VXLAN Configuration Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views21 pages

EVPN and VXLAN Configuration Guide

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Las conexiones entre Spine and Leaf deben ser /31

Loopback 0 ---> Usado como Router ID del BGP


Loopback 1 ---> Usado como VTEP en VxLAN
ECMP en Spine al valor máximo y en Leaf al valor de la cantidad de Spine

There are multiple ways to deploy the EVPN underlay and overlay.
You can use an IGP like OSPF or IS-IS
in the underlay and run either IBGP or EBGP in the overlay.
You can run EBGP in the underlay and IBGP on the overlay.

Network Layer Reachability Information (NLRI)


Network Virtualization Overlay (NVO)
EVPN Instance (EVI)

---------------------------
L2 VXLAN
RD = Loopback0:VNI
RT = VRF_ID:VNI

router bgp 65001


vrf green
rd [Link]:10007
route-target 7:10007 both
redistribute connected

L3EVPN

RD = Loop0: ID o ASN: ID 64 bit


RT = ID: VNI

------------------------------
Configure VXLAN Tunnel Endpoints (VTEP)
------------------------------
# leaf1
int loop1
ip add [Link]/32 <<<<<<<<<< IP del VTEP
!
router bgp 65001
address-family ipv4
network [Link]/32
!
int vxlan1
vxlan source-int lo1
vxlan udp-port 4789
vxlan learn-restrict any

------------------------------
Transporting L2VXLAN with EVPN
------------------------------
# leaf1
vlan 40
name test-l2-vxlan
!
int vxlan1
vxlan vlan 40 vni 100040
!
router bgp 65001
!
vlan 40
rd 65001:100040
route-target both evpn 40:100040
redistribute learned

A few helpful commands to validate operations

“show interface vxlan1” for a quick glance at the VTEP


“show vxlan vtep” will show remote vteps
“show vxlan address-table” will show MACs learned via VXLAN
“show bgp evpn route-type mac-ip” will show the Type-2 EVPN routes, which are
the MAC addresses transported over the IP fabric as L2 VXLAN packets

----------------------------------------
Transporting L3VXLAN with EVPN
----------------------------------------
# leaf1
vrf instance gold
!
ip routing vrf gold
!
int vxlan1
vxlan vrf gold vni 100001
!
router bgp 65001
vrf gold
rd [Link]:1
route-target both evpn 1:100001
redistribute connected

A few helpful commands to validate operations

“show vxlan vtep” will show remote vteps


“show bgp evpn route-type ip-prefix ipv4” will show the Type-5 EVPN routes,
which are the VRFs we’re transporting across the EVPN fabric
“show ip route vrf gold” should show us the routes learned from the remote VTEP

----------------------------------------

We will start with the initial configuration of underlay components, such as MLAG
and underlay BGP.
Next, we’ll configure the EVPN overlay and VTEPs.
Lastly, I’ll give an example configuration of L2VXLAN (EVPN Type-2) and L3VXLAN
(EVPN Type-5).

1) Understand the IP scheme.


2) Pair MLAG devices (if you are using MLAG for multihoming)
3) get BGP neighborships up
4) configure gateways
5) get VXLAN source interfaces reachable, configure VXLAN itself
6) work on EVPN control plane.
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! L3EVPN
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> LEAF <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf 1 Physical Links and Loopback 0 Interface Configuration (Leaf1-Phy
configlet)
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----

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
distance bgp 20 200 200

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
neighbor SpineUnderlay send-community

address-family ipv4
network [Link]/32
neighbor SpineUnderlay activate

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! 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

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf1--->MLAG<----Leaf2
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----

no spanning-tree vlan-id 4094

vlan 4094
trunk group MLAGVLAN

interface Ethernet 1-2


description Peer Link Leaf1_to_leaf2
channel-group 100 mode active

interface Port-Channel100
description Peer Link Leaf1_to_leaf2
switchport mode trunk
switchport trunk group MLAGVLAN
! spanning-tree link-type point-to-point
no shut
!
interface Vlan4094
no autostate
ip address [Link]/30
no shut

mlag configuration
domain-id DomainLeaf1Leaf2
local-interface Vlan4094
peer-address [Link]
peer-link Port-Channel100
no shut

ip virtual-router mac-address 001c.7300.0099

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Port Channel con MLAG
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----

Vlan 101,201,4093

interface Vlan 4093


ip address [Link]/30
no autostate
no shut

interface Loopback1
ip address [Link]/32

interface Ethernet 7
channel-group 1 mode active
no shut

interface Ethernet 9
channel-group 2 mode active
no shut

interface Port-Channel1
description Peer Link Host1
switchport
switchport access vlan 101
mlag 1
no shut
!
interface Port-Channel2
description Peer Link Host2
switchport
switchport access vlan 201
mlag 2
no shut
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! Leaf1-eBGPOverlay Configlet:
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----

router bgp 65003

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

!----------------------------------------------------------------------------------
----
! Ethernet Segment Multihoming LEAF ----> HOST
!----------------------------------------------------------------------------------
----

Vlan 301,401,4093

interface Ethernet 7
channel-group 1 mode active
no shut

interface Ethernet 9
channel-group 2 mode active
no shut

interface Port-Channel1
description Peer Link Host
switchport
switchport mode access
switchport access vlan 301
no shut

evpn ethernet-segment
identifier 0050:0c00:0700:0700:aaaa
route-target import 00:1c:73:f5:f7:6c
lacp system-id [Link]

interface Port-Channel2
description Peer Link Host
switchport
switchport mode access
switchport access vlan 401
no shut

evpn ethernet-segment
identifier 0050:0c00:0700:0700:bbbb
route-target import 00:1c:73:6a:b5:3e
lacp system-id [Link]
!----------------------------------------------------------------------------------
--

!-------------------------------------------------------
vrf instance VRF-C
ip routing vrf VRF-C
!
interface vlan 101
no autostate
vrf VRF-C
ip virtual-router address [Link]
ip address [Link]/24
!
interface vlan 201
vrf VRF-C
no autostate
ip virtual-router address [Link]
ip address [Link]/24

ip virtual-router mac-address 00:1c:73:00:00:99

!---------------------------------------------------
!---------------------------------------------------
! IGBP para cuando hay MLAG en Underlay
!---------------------------------------------------
!---------------------------------------------------

router bgp 65001


neighbor [Link] remote-as 65001
neighbor [Link] description iBGP_Leaf2Underlay
neighbor [Link] next-hop-self
neighbor [Link] send-community extended
neighbor [Link] maximum-routes 12000

address-family ipv4
neighbor [Link] activate
---------------------------------------------------
Route MAPS

ip prefix-list Loopback0 seq 10 permit [Link]/32


ip prefix-list Loopback1 seq 10 permit [Link]/32
ip prefix-list internal_net seq 10 permit [Link]/30
ip prefix-list internal_net seq 20 permit [Link]/30
ip prefix-list internal_net seq 30 permit [Link]/30
ip prefix-list internal_net seq 40 permit [Link]/30

route-map RedistributePrefixes permit 10


match ip address prefix-list Loopback0

route-map RedistributePrefixes permit 20


match ip address prefix-list Loopback1

route-map RedistributePrefixes permit 30


match ip address prefix-list internal_net

router bgp 65001


address-family ipv4
redistribute connected
! redistribute connected route-map RedistributePrefixes

!---------------------------------------------
interface Vxlan1

vxlan source-interface Loopback1


vxlan udp-port 4789
vxlan learn-restrict any
vxlan vlan 101 vni 1111
vxlan vlan 201 vni 2222
vxlan vrf VRF-C vni 7777
vxlan virtual-router encapsulation mac-address 00:1c:73:00:00:99

!-----------------------------------------------------------------------------
! Configure MAC-VRFs and IP-VRFs and EVPN Route Updates for Tenant C Overlay
!-----------------------------------------------------------------------------
router bgp 65001

vlan 101
rd [Link]:11111
route-target both 1111:1111
redistribute learned

vlan 201
rd [Link]:2222
route-target both 2222:2222
redistribute learned

vrf VRF-C
rd [Link]:7777
route-target export evpn 7777:7777
route-target import evpn 7777:7777
redistribute connected
redistribute attached-host

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> 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
distance bgp 20 200 200

neighbor [Link] description Leaf1


neighbor [Link] remote-as 65001
neighbor [Link] maximum-routes 12000
neighbor [Link] send-community

neighbor [Link] description Leaf2


neighbor [Link] remote-as 65001
neighbor [Link] maximum-routes 12000
neighbor [Link] send-community

neighbor [Link] description Leaf3


neighbor [Link] remote-as 65002
neighbor [Link] maximum-routes 12000
neighbor [Link] send-community

neighbor [Link] description Leaf4


neighbor [Link] remote-as 65003
neighbor [Link] maximum-routes 12000
neighbor [Link] send-community

neighbor BorderleafUnderlay peer group


neighbor BorderleafUnderlay maximum-routes 12000
neighbor BorderleafUnderlay remote-as 65500
neighbor BorderleafUnderlay send-community

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 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 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 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

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----

no spanning-tree vlan-id 4094

vlan 4094
trunk group MLAGVLAN

interface Ethernet 1-2


description Peer Link BorderLeaf1_to_Borderleaf2
switchport mode trunk
channel-group 100 mode active
no shut

interface Port-Channel100
description Peer Link Leaf1_to_leaf2
switchport mode trunk
switchport trunk group MLAGVLAN
no shut
!
interface Vlan4094
no autostate
ip address [Link]/30
no shut

mlag configuration
domain-id DomainBorderLeaf1BorderLeaf2
local-interface Vlan4094
peer-address [Link]
peer-link Port-Channel100

!---------------------------------------------------
!---------------------------------------------------
!---------------------------------------------------
vrf instance VRF-C
ip routing vrf VRF-C
!
vlan 67
!
interface vlan 67
no autostate
vrf VRF-C
ip virtual-router address [Link]
ip address [Link]/24

ip virtual-router mac-address 00:1c:73:00:00:98

!---------------------------------------------
interface Loopback1
ip address [Link]/32
!
interface Vxlan1

vxlan source-interface Loopback1


vxlan udp-port 4789
vxlan vlan 67 vni 6767
vxlan vrf VRF-C vni 7777
no shut

!-----------------------------------------------------------------------------
! Configure MAC-VRFs and IP-VRFs and EVPN Route Updates for Tenant C Overlay
!-----------------------------------------------------------------------------
router bgp 65500

vlan 67
rd [Link]:6767
route-target both 6767:6767
redistribute learned

vrf VRF-C
rd [Link]:7777
route-target export evpn 7777:7777
route-target import evpn 7777:7777
redistribute connected
redistribute attached-host

!-------------------------------------------------
!-------------------------------------------------
! IBGP ----> BorderLeaf
!-------------------------------------------------
!-------------------------------------------------

vlan 4093
interface Vlan4093
no autostate
ip address [Link]/30
no shut

router bgp 65500


neighbor [Link] remote-as 65500
neighbor [Link] description iBGP_BorderLeaf2Underlay
neighbor [Link] next-hop-self
neighbor [Link] send-community extended
neighbor [Link] maximum-routes 12000

address-family ipv4
neighbor [Link] activate

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> HOST <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!
!------>>>>>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<---------!

Vlan 101

interface Ethernet 1-2


channel-group 1 mode active
no shut

interface Port-Channel1
description Peer Link Host
switchport mode access
switchport access vlan 101
no shut
!
interface Vlan 101
ip address [Link]/30
no autostate
no shut

ip route [Link] [Link] [Link]

!----------------------------------------------------------------------------------
----
!----------------------------------------------------------------------------------
----
! 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

leaf-1#show bgp evpn route-type ip-prefix ipv4 vni 10007

-----------------------------------------------
Transporting L2VXLAN with EVPN

# leaf1
vlan 40
name test-l2-vxlan
!
int vxlan1
vxlan vlan 40 vni 100040
vxlan vrf red vni 100080
!
router bgp 65001
!
vlan 40
rd 65001:100040
route-target both evpn 40:100040
redistribute learned

leaf1# show interface vxlan1


leaf1# show vxlan vtep
leaf1# show vxlan address-table
leaf1# show bgp evpn route-type mac-ip

------------------------------------------------
Transporting L3VXLAN with EVPN

# leaf1
vrf instance gold
!
ip routing vrf gold
!
int vxlan1
vxlan vrf gold vni 100001
!
router bgp 65002
vrf gold
rd [Link]:100001
route-target both evpn 1:100001
redistribute connected

# leaf1
vlan 34
int vlan 34
vrf gold
ip address [Link]/24
ip virtual-router address [Link]

show bgp evpn route-type ip-prefix ipv4


show vxlan vtep
show ip route vrf gold
ping vrf gold [Link]

------------------------------------------------
------------------------------------------------
PIM Sparse mode with a Static RP
------------------------------------------------
MULTICAST configurar en Leaf and SPINE

router multicast
ipv4
routing
software-forwarding sfe
!
router pim sparse-mode
ipv4
rp address [Link]
!

interface ethernet3-6
pim ipv4 sparse-mode

------------------------------------------------
Configurar los Leaf asi:

interface Vlan101
pim ipv4 sparse-mode

interface Ethernet7
pim ipv4 sparse-mode
------------------------------------------------

Configurar los Host asi:

interface Vlan101
pim ipv4 sparse-mode

interface Ethernet7
pim ipv4 sparse-mode
------------------------------------------------
------------------------------------------------
PIM Sparse-mode with Dynamic RP

Add the RP-candidate configuration to Spine1-Multicast, Spine2-Multicast, Spine3-


Multicast, Spine4-Multicast configlets.
router pim sparse-mode
ipv4
rp candidate loopback 0

------------------------------------------------
Add BSR router configuration to Spine3-Multicast configlet.
router pim bsr
ipv4
candidate loopback 0

-----------------------------------------
Con gateways

vlan 15

interface Vlan15
no autostate
ip address virtual [Link]/24

router bgp 1

router-id [Link]
!
vlan 15
rd [Link]:10015
rd evpn domain remote [Link]:1
route-target import 10015:10015
route-target export 10015:10015
route-target import evpn domain remote 1:10015
route-target export evpn domain remote 1:10015
redistribute learned

You might also like