Implement MP-BGP EVPN VXLAN Control Plane Lab v2
Implement MP-BGP EVPN VXLAN Control Plane Lab v2
1
VXLAN Topology
Spine-1 Spine-2
WAN
Leaf-1 Leaf-2 Leaf-3 Leaf-4
Server-3
Server-1 Server-2
2
dCloud Demonstration Topology
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
WAN
Leaf-1 Leaf-2 Leaf-3 Leaf-4 Server-3
192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11 192.168.0.5
198.18.134.150
1/3 1/3
1/1 1/1
Server-4
Server-1 Server-2 198.18.134.250
198.18.134.50 198.18.134.100
4
IP Sheet
Spine-1 Spine-2
Leaf-1 10.0.0.20/30 10.0.128.4/30
Leaf-2 10.0.0.24/30 10.0.128.8/30
Leaf-3 10.0.0.28/30 10.0.128.12/30
Leaf-4 10.0.128.0/30 10.0.128.16/30
5
Session Users
6
IP Addresses
Subnet Addresses
7
How to Start the Lab
C1sco12345
8
How to Start the Lab
• Scheduled > Starting > View > RDP – Remote Desktop > Putty
• Change Putty Settings
9
• Once you login to devices; All the devices can restart again
#feature ospf
#feature lldp
#feature lacp
#feature interface-vlan Check that
MTU is
configured
#show feature | in ena
#show run | in interface|mtu
Task 0. Pre-Configuration & Checks
# show run | in interface|mtu
# show run int e1/1-4 | in mtu
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3
1
Task 0. Pre-Configuration & Checks
# show run ospf
# show ip ospf neighbor
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3
18
Tasks
Task 0: Pre-Configuration & Checks
Task 1: Establish iBGP Peer between Spine and Leaf Switches
Task 2: Configuring Multicast to Support BUM in VXLAN Fabric
Task 3: Configuring VXLAN Fabric
Task 4: Configuring BGP EVPN Control Plane
Task 5: Verify VXLAN EVPN Control Plane Update
Task 6: Configure Border Leaf to External Entity
Task 1:
Establish iBGP Peer between
Spine and Leaf Switches
Configure iBGP from:
1. Spine 1 to all Leaf Switches (Leaf-1, Leaf-2, Leaf-3, Leaf-4)
2. Spine 2 to all Leaf Switches (Leaf-1, Leaf-2, Leaf-3, Leaf-4)
Task 1. Establish iBGP Peer between Spine and Leaf Switches
# con
# feature bgp
# . Spine-1 Spine-2
# router bgp 65000
# router-id 192.168.0.6 192.168.0.6 192.168.0.7
1/1 1/4
# address-family ipv4 unicast 1/1 1/4
1/2 1/3
# template peer LEAF-PEER 1/2 1/3
# remote-as 65000
# update-source loopback0 1/1
1/1 1/2 1/2
1/2 1/1
# address-family ipv4 unicast 1/2 1/1
# send-community both
# route-reflector-client Leaf-1 Leaf-2 Leaf-3 Leaf-4
# neighbor 192.168.0.8 192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11
# inherit peer LEAF-PEER
# neighbor 192.168.0.9
# inherit peer LEAF-PEER AS 65000
# neighbor 192.168.0.10
# inherit peer LEAF-PEER
# neighbor 192.168.0.11
# inherit peer LEAF-PEER
# copy run start
Task 1. Establish iBGP Peer between Spine and Leaf Switches
# config t
# feature bgp Spine-1 Spine-2
# .
# router bgp 65000 192.168.0.6 192.168.0.7
1/1 1/4
# router-id 192.168.0.7 1/1 1/4
1/2 1/3
# address-family ipv4 unicast 1/2 1/3
# template peer LEAF-PEER
# remote-as 65000 1/1
1/1 1/2 1/2
# update-source loopback0 1/2 1/1
1/2 1/1
# address-family ipv4 unicast
# send-community both
# route-reflector-client Leaf-1 Leaf-2 Leaf-3 Leaf-4
# neighbor 192.168.0.8 192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11
# inherit peer LEAF-PEER
# neighbor 192.168.0.9
# inherit peer LEAF-PEER AS 65000
# neighbor 192.168.0.10
# inherit peer LEAF-PEER
# neighbor 192.168.0.11
# inherit peer LEAF-PEER # copy run start
# show run bgp
Task 1. Establish iBGP Peer between Spine and Leaf Switches
# config t
# feature bgp Spine-1 Spine-2
!
192.168.0.6 192.168.0.7
# router bgp 65000
1/1 1/4
1/4
# router-id 192.168.0.8 1/1
1/3
1/2
1/2 1/3
# address-family ipv4 unicast
# neighbor 192.168.0.6
1/1 1/2
# remote-as 65000 1/1 1/1
1/2 1/1
1/2
# update-source loopback0 1/2
13/01/22
Task 1. Establish iBGP Peer between Spine and Leaf Switches
# config t
# feature bgp Spine-1 Spine-2
!
192.168.0.6 192.168.0.7
# router bgp 65000
1/1 1/4
1/4
# router-id 192.168.0.9 1/1
1/3
1/2
1/2 1/3
# address-family ipv4 unicast
# neighbor 192.168.0.6
1/1 1/2
# remote-as 65000 1/1 1/2
1/2 1/1 1/1
# update-source loopback0 1/2
13/01/22
Task 1. Establish iBGP Peer between Spine and Leaf Switches
# config t
# feature bgp Spine-1 Spine-2
# .
192.168.0.6 192.168.0.7
# router bgp 65000
1/1 1/4
1/4
# router-id 192.168.0.10 1/1
1/3
1/2
1/2 1/3
# address-family ipv4 unicast
# neighbor 192.168.0.6
1/1 1/2
# remote-as 65000 1/1 1/2 1/1
1/2 1/1
# update-source loopback0 1/2
192.168.0.6 192.168.0.7
# show ip bgp summary 1/1 1/4 1/1 1/4
1/1 1/2
1/1 1/2
1/2 1/1
1/1
1/2
AS 65000
29
Spine-1 Spine-2
Task 1. Verification
192.168.0.6 192.168.0.7
# show ip bgp summary 1/1 1/4 1/1 1/4
1/1 1/2
1/1 1/2
1/2 1/1
1/1
1/2
AS 65000
Tasks
Task 0: Pre-Configuration & Checks
Task 1: Establish iBGP Peer between Spine and Leaf Switches
Task 2: Configuring Multicast to Support BUM in VXLAN Fabric
Task 3: Configuring VXLAN Fabric
Task 4: Configuring BGP EVPN Control Plane
Task 5: Verify VXLAN EVPN Control Plane Update
Task 6: Configure Border Leaf to External Entity
Task 2:
Configuring Multicast to
Support BUM in VXLAN Fabric
Configure PIM-SM with Anycast RP:
1. Enable PIM
2. Configure PIM on Spine & Leaf interfaces (all)
3. Enable OSPF on Loopback interface
4. Enable Anycast RP between Spine switches
Task 2. Configuring Multicast to Support BUM in VXLAN Fabric
# config t Rendezvous Point
# feature pim For RP Spine-1 Spine-2
!
192.168.0.6 192.168.0.7
# interface loopback1
1/4 1/1 1/4
# ip address 192.168.0.100/32 1/1
1/2 1/3 1/2 1/3
# ip pim sparse-mode
# ip router ospf 1 area 0.0.0.0
1/1 1/2
1/1 1/2
# copy run start 1/2 1/1
1/1
1/2
AS 65000
Task 2. Configuring Multicast to Support BUM in VXLAN
Fabric
Anycast RP allows two or more rendezvous points (RPs) to share the load for source
registration and the ability to act as hot backup routers for each other.
Anycast-RP for
Load Balancing
# config t
& Redundancy Spine-1 Spine-2
# ip pim rp-address 192.168.0.100
# ip pim anycast-rp 192.168.0.100 192.168.0.6
192.168.0.6 192.168.0.7
# ip pim anycast-rp 192.168.0.100 192.168.0.7 1/4 1/1 1/4
1/1
# interface e1/1-4 1/2 1/3 1/2 1/3
# ip pim sparse-mode
# interface loopback0 1/1
1/2 1/2
1/1 1/2 1/1
# ip pim sparse-mode 1/2
1/1
# copy run start
# show run pim
Leaf-1 Leaf-2 Leaf-3 Leaf-4
192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11
AS 65000
Task 2. Configuring Multicast to Support BUM in VXLAN
Fabric
# config t
# feature pim
Anycast-RP
Configuration
!
# ip pim rp-address 192.168.0.100
# interface e1/1-2
# ip pim sparse-mode Spine-1 Spine-2
# interface loopback0
# ip pim sparse-mode 192.168.0.6 192.168.0.7
1/1 1/4
# interface loopback1 1/1 1/4
1/2 1/3 1/2 1/3
# ip pim sparse-mode
For NVEnterface
i
# copy run start
1/1 1/1 1/2 1/2
# show run pim 1/2 1/1
1/1
1/2
AS 65000
Spine-1 Spine-2
Task 2. Verification
192.168.0.6 192.168.0.7
# show ip pim neighbor 1/1 1/4 1/1 1/4
1/1 1/2
1/1 1/2
1/2 1/1
1/1
1/2
AS 65000
Task 2. Verification
# show ip pim rp
Tasks
Task 0: Pre-Configuration & Checks
Task 1: Establish iBGP Peer between Spine and Leaf Switches
Task 2: Configuring Multicast to Support BUM in VXLAN Fabric
Task 3: Configuring VXLAN Fabric
Task 4: Configuring BGP EVPN Control Plane
Task 5: Verify VXLAN EVPN Control Plane Update
Task 6: Configure Border Leaf to External Entity
Task 3:
Configuring VXLAN Fabric
Configure:
1. VLAN/VNI/Multicast Group
i. VLAN ID to L2 VNI Segment ID mapping – one to one mapping
ii. L2 VNI Segment ID to Multicast group mapping – one to one mapping
2. L3 VNI for VXLAN Routing
Task 3. Configuring VXLAN Fabric
For BUM
traffic inside
L2 VNI
L2 VNI
L3 VNI for
L2 VLAN for L3 VNI
VXLAN Routing
Task 3. Configuring VXLAN Fabric
AS 65000
Configure on Nx5K
# install feature-set fabric
# feature-set fabric
Enables fabric forwarding anycast gateway configuration
# feature fabric forwarding
Task 3. Configuring VXLAN Fabric
# config t
# spanning-tree vlan 1,140,141,999 priority 4096
# vlan 140
# name L2-VNI-140-Tenant1 Spine-1 Spine-2
# vn-segment 50140
192.168.0.7
# vlan 141 192.168.0.6
1/1
L2 VNI 1/4 1/4
# name L2-VNI-141-T enant1 1/1
1/2 1/3
1/2 1/3
# vn-segment 50141
# vlan 999 L2 VLAN 1/1 1/1 1/2 1/2
for L3 VNI 1/2 1/1
1/1
# vn-segment
gment 50999 1/2
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/1 1/4
Configure VXLAN tunnel interface (NVE) 1/1 1/4
1/2 1/3 1/2 1/3
# interface
interfac nve1 1/2 1/2
1/1 1/1
# no shutdown 1/2 1/1
1/1
1/2
# source-interface loopback1
# host-reachability protocol bgp
Leaf-1 Leaf-2 Leaf-3 Leaf-4
# member vni 50140 Lo0-192.168.0.8 Lo0-192.168.0.9 Lo0-192.168.0.10 Lo0-192.168.0.1
# mcast-group 239.0.0.140 Lo1-192.168.0.18 Lo1-192.168.0.19 Lo1-192.168.0.110 Lo1
Lo1-192.168.0.111
# member vni 50141
# mcast-group 239.0.0.141
# member vni 50999 associate-vrf
AS 65000
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
AS 65000
Task 3. Verify VXLAN Configuration
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
Create peer template on both Spine switches Leaf-1 Leaf-2 Leaf-3 Leaf-4
192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11
AS 65000
Spine-1 Spine-2
192.168.0.6 192.168.0.7
Task 4. Configuring BGP EVPN Control Plane
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
# config t
1/1 1/2
# router bgp 65000 1/1 1/2 1/1 1/2
1/2
# address-family l2vpn evpn
1/1
# retain route-target all
# neighbor 192.168.0.6 Leaf-1 Leaf-2 Leaf-3 Leaf-4
192.168.0.8 192.168.0.9 192.168.0.10 192.168.0.11
# remote-as 65000
# address-family l2vpn evpn AS 65000
# send-community both
# neighbor 192.168.0.7
# remote-as 65000
# address-family l2vpn evpn
# send-community both
AAdddd tthhee eevvppnn ad
adddrreessss ffam
amilyily uunnddeerr tthhee eexxisisttiningg BBGP
GP
Task 4. Configuring BGP EVPN Cont rol Plane
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
1/1 1/1
• Verify:
Server-1 • Action: Server-2
• dynamic tunnel established between
• initiate traffic across different VTEPs
VXLANs • node MAC/IP host route being updated
via BGP EVPN control plane
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
1/1
1/1
192.168.0.6 192.168.0.7
1/1 1/4 1/1 # 1/4
show ip route vrf Tenant-1
1/2 1/3 1/2 1/3
Routing table with the /32 host route learned from BGP
1/1
1/1 1/2 1/2
1/2 1/1
1/2 1/3 ge2 ge3 1/1
1/1
Routing table with the /32 host route learned from BGP
1/1
1/1
Server-2
Server-1 172.21.141.10
172.21.140.10
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/1 1/4 1/1 # 1/4
show ip route vrf Tenant-1
1/2 1/3 1/2 1/3
Routing table with the /32 host route learned from BGP
1/1
1/1 1/2 1/2
1/2 1/1
1/2 1/3 ge2 ge3 1/1
1/1
Routing table with the /32 host route learned from BGP
1/1
1/1
Server-2
Server-1 172.21.141.10
172.21.140.10
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
1/1
1/1
# show bgp l2vpn evpn
verify the EVPN control plane update
Server-2
Server-1 172.21.141.10
172.21.140.10
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1
1/ 2 ge3 1/1
1/1 e2
1/3 g
1/1 1/1
Server-2
172.21.141.10
Server-1
172.21.140.10
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
92.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
Server-2
172.21.141.10
Server-1
172.21.140.10
Ashish Sehgal
Task 5. Verify VXLAN EVPN Control Plane Update
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 ge3 1/1
1/3 ge2
eth1
eth1
Server-2
172.21.141.10
Server-1
172.21.140.10
Spine-1 pine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/3 /2 1/3
1/2
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
eth1
eth1
Server-2
172.21.141.10
Server-1
172.21.140.10
Tasks
Task 0: Pre-Configuration & Checks
Task 1: Establish iBGP Peer between Spine and Leaf Switches
Task 2: Configuring Multicast to Support BUM in VXLAN Fabric
Task 3: Configuring VXLAN Fabric
Task 4: Configuring BGP EVPN Control Plane
Task 5: Verify VXLAN EVPN Control Plane Update
Task 6: Configure Border Leaf to External Entity
Task 6:
Configure Border Leaf to
External Entity
• Establish connectivity from the VXLAN fabric to external network.
• Redistribute routes in VXLAN fabric to WAN router (via the Border leaf switch, Leaf-4)
and vice versa
• Pings from server-3 to server-1 and server-2 inside the VXLAN fabric will be successful
Task 6. Configure Border Leaf to External Entit y
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3 172.21.1.0/24
1/1
1/1 1/2
1/2
1/2 1/1 1/1
1/2 1/3 ge3 1/1
ge2
eth1
eth1
Server-2
Server-1 172.21.141.10
172.21.140.10
Task 6. Configure Border Leaf to External Entity
# interface gig2
# mtu 9216
# description to Leaf-4
# ip address 10.0.0.17 255.255.255.252
# ip ospf network point-to-point
Spine-1 Spine-2 # exit
# router ospf 1
192.168.0.6 192.168. .7 # router-id 192.168.0.5
1/4 1/1 0 # network 10.0.0.16 0.0.0.3 area 0
1/1
1/3 1/4 # redistribute connected subnets
1/2 1/3 1/2
172.21.1.0/24
1/1
1/1 1/2 1/2
1/2 1/1
1/2 1/1 gig3 1/1
1/3 gig2
192.168.0.6 192.168.0.7
1/4 1/1 1/4
1/1
1/2 1/3 1/2 1/3
1/1
1/1 1/2 1/2
1/2 1/1
1/2 1/1 1/1
1/3 ge2 ge3
eth1
eth1
Server-2
172.21.141.10
Server-1
172.21.140.10
Task 6. Configure Border Leaf to External Entity
Spine-1 Spine-2
# route-map permit-bgp2ospf permit 10
192.168.0.6 192.168.0.7
# route-map permit-ospf2bgp permit 1/4 10 1/1 1/4
1/1
# ! 1/2 1/3 1/2 1/3
Spine-1 Spine-2
192.168.0.6 192.168.0.7
1/1 1/4 1/1 1/4
1/2 1/3 1/2 1/3 172.21.1.0/24
1/1
1/1 1/2 1/2
1/2 1/2 1/1 1/1
1/3 ge2 ge3 1/1
1/1
1/1
Server-2
Server-1 172.21.141.10
172.21.140.10
Task 6. Configure Border Leaf to External Entity
Usr-root
1/1 Pw-C1sco12345
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 eth1
Server-2
172.21.141.10
Server-1
172.21.140.10
Task 6. Configure Border Leaf to External Entity
Spine-1 Spine-2
# ping 172.21.141.10
192.168.0.6 192.168.0.7
1/4 1/1 1/4 # ping 172.21.140.10
1/1
1/2 1/3 1/2 1/3
# show ip route ospf
1/1
1/1 1/2 1/2
1/2 1/1 1/1
1/2 1/3 ge2 ge3 1/1
eth1
1/1
Server-2
172.21.141. 10
Server-1
172.21.140.10