NVIDIA DOCA™ HBN can use an NVIDIA® BlueField® system as a border gateway for tenant traffic. The border gateway combines EVPN symmetric routing, downstream VNI (DVNI), VRF route leaking, and VLAN subinterfaces to hand off traffic between the overlay network and an external network.
In this design, the BlueField uplinks carry both VXLAN-encapsulated overlay traffic and direct-routed underlay traffic. Additional VLAN subinterfaces on the same uplinks place external traffic in an Internet or external VRF, separate from the default VRF used for the overlay.
Before You Begin
-
Plan the underlay connectivity, tenant VRFs, Layer 3 VNIs, route targets, VLAN subinterfaces, BGP peers, and external-network handoff.
-
Replace the hostnames, interface names, addresses, autonomous system numbers, VLAN IDs, VNI values, and route targets in the examples with deployment-specific values.
-
Confirm that the underlay provides end-to-end IP and UDP connectivity between the VXLAN tunnel endpoints.
See Border Gateway Topology for the example topology used on this page.
For the supporting feature configuration, refer to Downstream VNI and Border Gateway Configuration and VLAN Subinterfaces.
Gateway Deployment Model
A BlueField system running HBN can terminate VXLAN traffic and route it toward external networks without requiring a separate physical device for the border-gateway role. You can deploy dedicated gateways per tenant or shared gateways for groups of tenants.
Example Use Cases
The example topology shows two deployment models:
-
tenant1is hosted behind a non-gateway BlueField system and uses the dedicated border gatewaygw-hbn1for external connectivity. -
gw_tenant1is hosted behind a gateway BlueField system and usesgw-hbn2as its border gateway.
Layer 3 VNI Map
|
HBN Nodes |
VRF |
Layer 3 VNI |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Configure the Internet VRF
The Internet VRF establishes BGP sessions with the underlay switches through p0_if.60 and p1_if.60. It also imports the local and remote tenant routes through DVNI.
nv set interface p0_if.60,p1_if.60,vlan10 ip vrf internet1
nv set vrf internet1 evpn enable on
nv set vrf internet1 evpn vni 10000
nv set vrf internet1 loopback ip address 6.2.0.1/32
nv set vrf internet1 loopback ip address 2001:cafe:feed::1/128
nv set vrf internet1 router bgp address-family ipv4-unicast enable on
nv set vrf internet1 router bgp address-family ipv4-unicast redistribute connected enable on
nv set vrf internet1 router bgp address-family ipv4-unicast route-export to-evpn enable on
nv set vrf internet1 router bgp address-family ipv6-unicast enable on
nv set vrf internet1 router bgp address-family ipv6-unicast redistribute connected enable on
nv set vrf internet1 router bgp address-family ipv6-unicast route-export to-evpn enable on
nv set vrf internet1 router bgp address-family l2vpn-evpn enable on
nv set vrf internet1 router bgp autonomous-system 65552
nv set vrf internet1 router bgp enable on
nv set vrf internet1 router bgp neighbor p0_if.60 capabilities source-address internet1
nv set vrf internet1 router bgp neighbor p0_if.60 peer-group l3_pg1
nv set vrf internet1 router bgp neighbor p0_if.60 type unnumbered
nv set vrf internet1 router bgp neighbor p1_if.60 capabilities source-address internet1
nv set vrf internet1 router bgp neighbor p1_if.60 peer-group l3_pg1
nv set vrf internet1 router bgp neighbor p1_if.60 type unnumbered
nv set vrf internet1 router bgp peer-group l3_pg1 address-family ipv4-unicast enable on
nv set vrf internet1 router bgp peer-group l3_pg1 address-family ipv6-unicast enable on
nv set vrf internet1 router bgp peer-group l3_pg1 remote-as external
nv set vrf internet1 router bgp route-export to-evpn route-target 65552:10000
nv set vrf internet1 router bgp route-import from-evpn route-target ANY:20000
nv set vrf internet1 router bgp route-import from-evpn route-target ANY:30000
nv set vrf internet1 router bgp route-import from-evpn route-target auto
nv set vrf internet1 router bgp router-id 27.0.0.5
Configure the Local Gateway Tenant
The gw_tenant1 VRF spans two gateway nodes and uses Layer 3 VNI 30000. The example assigns vlan30 and vlan31 to the tenant and imports the Internet VRF through DVNI.
nv set interface vlan30-31 ip vrf gw_tenant1
nv set vrf gw_tenant1 evpn enable on
nv set vrf gw_tenant1 evpn vni 30000
nv set vrf gw_tenant1 loopback ip address 15.3.0.1/32
nv set vrf gw_tenant1 loopback ip address 2001:bad:c0de::1/128
nv set vrf gw_tenant1 router bgp address-family ipv4-unicast enable on
nv set vrf gw_tenant1 router bgp address-family ipv4-unicast redistribute connected enable on
nv set vrf gw_tenant1 router bgp address-family ipv4-unicast route-export to-evpn enable on
nv set vrf gw_tenant1 router bgp address-family ipv6-unicast enable on
nv set vrf gw_tenant1 router bgp address-family ipv6-unicast redistribute connected enable on
nv set vrf gw_tenant1 router bgp address-family ipv6-unicast route-export to-evpn enable on
nv set vrf gw_tenant1 router bgp address-family l2vpn-evpn enable on
nv set vrf gw_tenant1 router bgp autonomous-system 65552
nv set vrf gw_tenant1 router bgp enable on
nv set vrf gw_tenant1 router bgp route-export to-evpn route-target 65552:30000
nv set vrf gw_tenant1 router bgp route-import from-evpn route-target ANY:10000
nv set vrf gw_tenant1 router bgp route-import from-evpn route-target auto
nv set vrf gw_tenant1 router bgp router-id 27.0.0.5
Configure the Remote Tenant
The tenant1 VRF spans two remote HBN VTEPs and uses Layer 3 VNI 20000. It imports the Internet VRF route target and retains its automatically derived route target.
nv set interface vlan20-21 ip vrf tenant1
nv set vrf tenant1 evpn enable on
nv set vrf tenant1 evpn vni 20000
nv set vrf tenant1 loopback ip address 15.1.0.1/32
nv set vrf tenant1 loopback ip address 2001:c001:c0de::1/128
nv set vrf tenant1 router bgp address-family ipv4-unicast enable on
nv set vrf tenant1 router bgp address-family ipv4-unicast redistribute connected enable on
nv set vrf tenant1 router bgp address-family ipv4-unicast route-export to-evpn enable on
nv set vrf tenant1 router bgp address-family ipv6-unicast enable on
nv set vrf tenant1 router bgp address-family ipv6-unicast redistribute connected enable on
nv set vrf tenant1 router bgp address-family ipv6-unicast route-export to-evpn enable on
nv set vrf tenant1 router bgp address-family l2vpn-evpn enable on
nv set vrf tenant1 router bgp autonomous-system 6300656
nv set vrf tenant1 router bgp enable on
nv set vrf tenant1 router bgp route-export to-evpn route-target 6300656:20000
nv set vrf tenant1 router bgp route-import from-evpn route-target ANY:10000
nv set vrf tenant1 router bgp route-import from-evpn route-target auto
nv set vrf tenant1 router bgp router-id 27.0.0.17
Verify Route Distribution
The following output demonstrates the expected route relationships. Route IDs, addresses, and next-hop identifiers vary by environment.
Gateway Routes
The Internet VRF receives IPv4 and IPv6 default routes through the uplink subinterfaces:
ip -4 route show default vrf internet1
default nhid 248 proto bgp metric 20
ip -6 route show default vrf internet1
default nhid 248 proto bgp metric 20 pref medium
ip nexthop get id 248
id 248 group 249/250 proto zebra
ip nexthop get id 249
id 249 via fe80::202:ff:fe00:1d dev p0_if.60 scope link proto zebra
ip nexthop get id 250
id 250 via fe80::202:ff:fe00:26 dev p1_if.60 scope link proto zebra
The local gateway tenant reaches the Internet through Layer 3 VNI 10000:
ip -4 route show vrf gw_tenant1 default
default encap ip id 10000 src 0.0.0.0 dst 27.0.0.7 ttl 0 tos 0 via 27.0.0.7 dev vxlan48 proto bgp metric 20 onlink
ip -6 route show vrf gw_tenant1 default
default encap ip id 10000 src 0.0.0.0 dst 27.0.0.7 ttl 0 tos 0 via ::ffff:27.0.0.7 dev vxlan48 proto bgp metric 20 onlink pref medium
The Internet VRF reaches the remote tenant endpoint through Layer 3 VNI 20000:
ip -4 route show vrf internet1 15.1.0.1/32
15.1.0.1 encap ip id 20000 src 0.0.0.0 dst 27.0.0.17 ttl 0 tos 0 via 27.0.0.17 dev vxlan48 proto bgp metric 20 onlink
ip -6 route show vrf internet1 2001:c001:c0de::1/128
2001:c001:c0de::1 encap ip id 20000 src 0.0.0.0 dst 27.0.0.17 ttl 0 tos 0 via ::ffff:27.0.0.17 dev vxlan48 proto bgp metric 20 onlink pref medium
Remote Tenant Routes
The remote tenant reaches the gateway Internet VRF loopback through Layer 3 VNI 10000:
ip -4 route show vrf tenant1 6.2.0.1/32
6.2.0.1 encap ip id 10000 src 0.0.0.0 dst 27.0.0.5 ttl 0 tos 0 via 27.0.0.5 dev vxlan48 proto bgp metric 20 onlink
ip -6 route show vrf tenant1 2001:cafe:feed::1/128
2001:cafe:feed::1 encap ip id 10000 src 0.0.0.0 dst 27.0.0.5 ttl 0 tos 0 via ::ffff:27.0.0.5 dev vxlan48 proto bgp metric 20 onlink pref medium
The remote tenant receives equal-cost IPv4 and IPv6 default routes through the two gateway nodes:
ip -4 route show vrf tenant1 default
default proto bgp metric 20
nexthop encap ip id 10000 src 0.0.0.0 dst 27.0.0.5 ttl 0 tos 0 via 27.0.0.5 dev vxlan48 weight 1 onlink
nexthop encap ip id 10000 src 0.0.0.0 dst 27.0.0.7 ttl 0 tos 0 via 27.0.0.7 dev vxlan48 weight 1 onlink
ip -6 route show vrf tenant1 default
default proto bgp metric 20 pref medium
nexthop encap ip id 10000 src 0.0.0.0 dst 27.0.0.5 ttl 0 tos 0 via ::ffff:27.0.0.5 dev vxlan48 weight 1 onlink
nexthop encap ip id 10000 src 0.0.0.0 dst 27.0.0.7 ttl 0 tos 0 via ::ffff:27.0.0.7 dev vxlan48 weight 1 onlink
Confirm that the expected tenant and default routes are present in the appropriate VRFs and that the encapsulation VNI matches the imported route target.
Complete Configuration Examples
See Gateway and Tenant Complete Configurations for the complete gateway and tenant configurations used by this example.
Last updated: