09-30-2024 04:19 AM
Hi Guys
I am looking to build a test lab between 2 8000v routers in my CML environment for BGP EVPN VXLAN.
Does anyone have a basic config they can share for this?
Cheers
09-30-2024 04:29 AM
Can you add one more v8000?
You need at least three
One spine
Two leafs
MHM
09-30-2024 05:00 AM
09-30-2024 05:02 AM
Yes, we are using Cisco modelling labs
09-30-2024 11:08 AM
Hi,
Here's a step-by-step guide to configure a test lab for BGP EVPN VXLAN between 3 8000v routers in your CML environment:
Start by setting up basic connectivity between the routers.
# Hostname and basic configurations
hostname R1
no ip domain-lookup
ip domain-name yourdomain.local
# Set up Loopback interface for BGP peering
interface Loopback0
ip address 1.1.1.1 255.255.255.255
Repeat similar configuration for the other routers (R2, R3), using 2.2.2.2 for R2 and 3.3.3.3 for R3.
Use OSPF or BGP to establish an underlay network between the routers. This will provide reachability between loopback interfaces.
router ospf 1
router-id 1.1.1.1
network 10.0.0.0 0.0.0.255 area 0
Next, configure VXLAN. Each router will act as a VTEP (VXLAN Tunnel Endpoint). Use NVE interfaces for the VXLAN encapsulation.
interface nve1
no shutdown
source-interface Loopback0
member vni 10001
ingress-replication protocol static
peer-ip 2.2.2.2
peer-ip 3.3.3.3
For each router, adjust the peer-ip to reflect the loopback addresses of the other routers.
Configure BGP to handle EVPN (Ethernet VPN) as the control plane.
router bgp 65000
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 65000
neighbor 3.3.3.3 remote-as 65000
!
address-family l2vpn evpn
neighbor 2.2.2.2 activate
neighbor 3.3.3.3 activate
exit-address-family
Repeat this on all routers, changing the neighbor IPs appropriately. This establishes BGP sessions for the EVPN control plane.
Configure VRF and VNI for tenant separation.
vrf definition Tenant-A
rd 1:1
!
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
Then associate VNIs with this VRF.
interface Vlan100
vrf forwarding Tenant-A
ip address 192.168.1.1 255.255.255.0
vxlan vni 10001
Verify the VXLAN tunnel and BGP EVPN sessions:
show nve peers
show nve vni
BGP EVPN Verification:
show bgp l2vpn evpn summary
These commands should show active peers and VXLAN tunnels if everything is configured correctly.
This should give you a working VXLAN EVPN setup in your CML environment.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide