NVIDIA DOCA™ HBN supports VXLAN with an EVPN control plane for Layer 2 overlay traffic over IPv4 or BGP-unnumbered underlay networks. VXLAN encapsulation is supported only over uplink parent interfaces.
Before You Begin
-
Plan the underlay routing, loopback addresses, VLAN-to-VNI mappings, and BGP autonomous system numbers for the deployment.
-
Replace the interface names, IP addresses, autonomous system numbers, VLAN IDs, VNI values, and MAC addresses in the examples with deployment-specific values.
-
Do not combine a single VXLAN device with traditional per-VNI VXLAN devices.
Use the child pages for complete Layer 2 EVPN, Layer 3 EVPN, route-server, downstream-VNI, and border-gateway examples.
Single VXLAN Device
A single VXLAN device represents multiple VXLAN network identifiers (VNIs) and their associated VLAN-to-VNI mappings. This model reduces configuration overhead compared with creating a separate VXLAN device for each VNI.
You can configure the device by using NVIDIA® user experience (NVUE) or by editing /etc/network/interfaces. When NVUE creates the device, it derives a unique name in the format vxlan<id> from the bridge name.
The following example:
-
Creates a single VXLAN device named
vxlan21. -
Maps VLAN 10 to VNI 10 and VLAN 20 to VNI 20.
-
Adds the VXLAN device to the default bridge.
cumulus@leaf01:~$ nv set bridge domain bridge vlan 10 vni 10
cumulus@leaf01:~$ nv set bridge domain bridge vlan 20 vni 20
cumulus@leaf01:~$ nv set nve vxlan source address 10.10.10.1
cumulus@leaf01:~$ nv config apply
After applying the configuration, VLANs 10 and 20 are associated with VNIs 10 and 20, respectively, and use 10.10.10.1 as the VXLAN source address.
To configure the same topology with flat files, edit /etc/network/interfaces, and then run ifreload -a:
auto lo
iface lo inet loopback
vxlan-local-tunnelip 10.10.10.1
auto vxlan21
iface vxlan21
bridge-vlan-vni-map 10=10 20=20
bridge-learning off
auto bridge
iface bridge
bridge-vlan-aware yes
bridge-ports vxlan21 pf0hpf_if pf1hpf_if
bridge-vids 10 20
bridge-pvid 1
Sample Underlay Switch Configuration for EVPN
The following NVUE example configures an NVIDIA® Spectrum™ switch running NVIDIA® Cumulus® Linux as an underlay switch for an HBN EVPN deployment. The example assumes that BlueField uplinks connect to switch ports swp1 through swp4.
nv set evpn enable on
nv set router bgp enable on
nv set vrf default router bgp address-family ipv4-unicast enable on
nv set vrf default router bgp address-family ipv4-unicast redistribute connected enable on
nv set vrf default router bgp address-family l2vpn-evpn enable on
nv set vrf default router bgp autonomous-system 63640
nv set vrf default router bgp enable on
nv set vrf default router bgp neighbor swp1 peer-group fabric
nv set vrf default router bgp neighbor swp1 type unnumbered
nv set vrf default router bgp neighbor swp2 peer-group fabric
nv set vrf default router bgp neighbor swp2 type unnumbered
nv set vrf default router bgp neighbor swp3 peer-group fabric
nv set vrf default router bgp neighbor swp3 type unnumbered
nv set vrf default router bgp neighbor swp4 peer-group fabric
nv set vrf default router bgp neighbor swp4 type unnumbered
nv set vrf default router bgp path-selection multipath aspath-ignore on
nv set vrf default router bgp peer-group fabric address-family ipv4-unicast enable on
nv set vrf default router bgp peer-group fabric address-family ipv6-unicast enable on
nv set vrf default router bgp peer-group fabric address-family l2vpn-evpn add-path-tx off
nv set vrf default router bgp peer-group fabric address-family l2vpn-evpn enable on
nv set vrf default router bgp peer-group fabric remote-as external
nv set vrf default router bgp router-id 27.0.0.10
nv set interface lo ip address 2001:c000:10ff:f00d::10/128
nv set interface lo ip address 27.0.0.10/32
nv set interface lo type loopback
nv set interface swp1,swp2,swp3,swp4 type swp
After applying the configuration, the switch establishes unnumbered BGP sessions on the four fabric ports and advertises the EVPN address family. Confirm the actual peer state and advertised routes with the operational commands used for the deployment.
Last updated: