This example configures NVIDIA DOCA™ HBN to establish:
-
Multihop BGP and Bidirectional Forwarding Detection (BFD) sessions with an EVPN route server in the default VRF.
-
Single-hop BGP and BFD sessions with a host in two tenant VRFs.
-
tenant1uses SVIvlan101. -
tenant2uses VLAN subinterfacepf0vf1_if.2.
-
Before You Begin
-
Configure the fabric and route-server underlay so that the HBN and route-server loopbacks are reachable.
-
Configure the host interfaces and FRR peers described in Host BFD Configuration.
-
Replace the addresses, interfaces, VLAN IDs, VNIs, autonomous system numbers, and profile names with deployment-specific values.
Configure HBN
nv set bridge domain br_default vlan 101 vni 10101
nv set evpn enable on
nv set evpn route-advertise svi-ip off
nv set interface lo ip address 6.0.0.9/32
nv set interface lo ip address 2001::9/128
nv set interface lo type loopback
nv set interface p0_if,p1_if,pf0hpf_if,pf0vf0_if,pf0vf1_if,pf0vf2_if,pf0vf3_if,pf0vf4_if,pf0vf5_if,pf0vf6_if,pf0vf7_if,pf0vf8_if,pf0vf9_if,pf1hpf_if,pf1vf0_if,pf1vf1_if type swp
nv set interface pf0vf0_if bridge domain br_default access 101
nv set interface pf0vf1_if.2 base-interface pf0vf1_if
nv set interface pf0vf1_if.2 ip address 22.10.0.9/16
nv set interface pf0vf1_if.2 ip address 2020:0:2:10::9/64
nv set interface pf0vf1_if.2 type sub
nv set interface pf0vf1_if.2 vlan 2
nv set interface pf0vf1_if.2,vlan3002 ip vrf tenant2
nv set interface vlan101 ip address 21.1.0.9/16
nv set interface vlan101 ip address 2020:0:1:1::9/64
nv set interface vlan101 ip vrr address 21.1.0.250/16
nv set interface vlan101 ip vrr address 2020:0:1:1::250/64
nv set interface vlan101 ip vrr enable on
nv set interface vlan101 ip vrr mac-address 00:00:01:00:00:65
nv set interface vlan101 vlan 101
nv set interface vlan101,3001 ip vrf tenant1
nv set interface vlan101,3001-3002 base-interface br_default
nv set interface vlan101,3001-3002 type svi
nv set interface vlan3001 vlan 3001
nv set interface vlan3002 vlan 3002
nv set nve vxlan arp-nd-suppress on
nv set nve vxlan enable on
nv set nve vxlan source address 6.0.0.9
nv set router bfd profile fabric-bfd-profile detect-multiplier 3
nv set router bfd profile fabric-bfd-profile min-rx-interval 300
nv set router bfd profile fabric-bfd-profile min-tx-interval 300
nv set router bfd profile fabric-bfd-profile minimum-ttl 1
nv set router bfd profile fabric-bfd-profile passive-mode off
nv set router bfd profile fabric-bfd-profile shutdown off
nv set router bfd profile hostT1-bfd-profile detect-multiplier 3
nv set router bfd profile hostT1-bfd-profile min-rx-interval 300
nv set router bfd profile hostT1-bfd-profile min-tx-interval 300
nv set router bfd profile hostT1-bfd-profile minimum-ttl 1
nv set router bfd profile hostT1-bfd-profile passive-mode off
nv set router bfd profile hostT1-bfd-profile shutdown off
nv set router bfd profile hostT2-bfd-profile detect-multiplier 3
nv set router bfd profile hostT2-bfd-profile min-rx-interval 300
nv set router bfd profile hostT2-bfd-profile min-tx-interval 300
nv set router bfd profile hostT2-bfd-profile minimum-ttl 1
nv set router bfd profile hostT2-bfd-profile passive-mode off
nv set router bfd profile hostT2-bfd-profile shutdown off
nv set router bfd profile rserver-bfd-profile detect-multiplier 3
nv set router bfd profile rserver-bfd-profile min-rx-interval 300
nv set router bfd profile rserver-bfd-profile min-tx-interval 300
nv set router bfd profile rserver-bfd-profile minimum-ttl 1
nv set router bfd profile rserver-bfd-profile passive-mode off
nv set router bfd profile rserver-bfd-profile shutdown off
nv set router bgp autonomous-system 65011
nv set router bgp enable on
nv set router bgp router-id 6.0.0.9
nv set router vrr 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 ipv6-unicast enable on
nv set vrf default router bgp address-family l2vpn-evpn enable on
nv set vrf default router bgp enable on
nv set vrf default router bgp neighbor 6.0.0.5 peer-group rservers
nv set vrf default router bgp neighbor 6.0.0.5 type numbered
nv set vrf default router bgp neighbor p0_if peer-group fabric
nv set vrf default router bgp neighbor p0_if type unnumbered
nv set vrf default router bgp neighbor p1_if peer-group fabric
nv set vrf default router bgp neighbor p1_if type unnumbered
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 bfd profile fabric-bfd-profile
nv set vrf default router bgp peer-group fabric remote-as external
nv set vrf default router bgp peer-group rservers address-family ipv4-unicast enable off
nv set vrf default router bgp peer-group rservers address-family l2vpn-evpn add-path-tx off
nv set vrf default router bgp peer-group rservers address-family l2vpn-evpn enable on
nv set vrf default router bgp peer-group rservers bfd profile rserver-bfd-profile
nv set vrf default router bgp peer-group rservers multihop-ttl 10
nv set vrf default router bgp peer-group rservers remote-as external
nv set vrf default router bgp peer-group rservers update-source lo
nv set vrf tenant1 evpn enable on
nv set vrf tenant1 evpn vni 30001
nv set vrf tenant1 loopback ip address 7.1.0.9/32
nv set vrf tenant1 loopback ip address 2007:0:1::9/64
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 enable on
nv set vrf tenant1 router bgp neighbor 21.1.0.10 peer-group hostgroup
nv set vrf tenant1 router bgp neighbor 21.1.0.10 type numbered
nv set vrf tenant1 router bgp peer-group hostgroup address-family ipv4-unicast enable on
nv set vrf tenant1 router bgp peer-group hostgroup address-family ipv6-unicast enable on
nv set vrf tenant1 router bgp peer-group hostgroup bfd profile hostT1-bfd-profile
nv set vrf tenant1 router bgp peer-group hostgroup remote-as external
nv set vrf tenant1 router bgp router-id 6.0.0.9
nv set vrf tenant2 evpn enable on
nv set vrf tenant2 evpn vni 30002
nv set vrf tenant2 loopback ip address 7.2.0.9/32
nv set vrf tenant2 loopback ip address 2007:0:2::9/64
nv set vrf tenant2 router bgp address-family ipv4-unicast enable on
nv set vrf tenant2 router bgp address-family ipv4-unicast redistribute connected enable on
nv set vrf tenant2 router bgp address-family ipv4-unicast route-export to-evpn enable on
nv set vrf tenant2 router bgp address-family ipv6-unicast enable on
nv set vrf tenant2 router bgp address-family ipv6-unicast redistribute connected enable on
nv set vrf tenant2 router bgp address-family ipv6-unicast route-export to-evpn enable on
nv set vrf tenant2 router bgp enable on
nv set vrf tenant2 router bgp neighbor 22.10.0.10 peer-group hostgroup
nv set vrf tenant2 router bgp neighbor 22.10.0.10 type numbered
nv set vrf tenant2 router bgp peer-group hostgroup address-family ipv4-unicast enable on
nv set vrf tenant2 router bgp peer-group hostgroup address-family ipv6-unicast enable on
nv set vrf tenant2 router bgp peer-group hostgroup bfd profile hostT2-bfd-profile
nv set vrf tenant2 router bgp peer-group hostgroup remote-as external
nv set vrf tenant2 router bgp router-id 6.0.0.9
nv set vrf tenant2 table auto
Expected Result
After applying the configuration:
-
The fabric BGP and BFD sessions on
p0_ifandp1_ifshould be established. -
The multihop BGP and BFD session to route server
6.0.0.5should be established for L2VPN EVPN. -
The single-hop BGP and BFD session from
tenant1to host address21.1.0.10should usevlan101. -
The single-hop BGP and BFD session from
tenant2to host address22.10.0.10should usepf0vf1_if.2.
See BFD Peer Verification for example verification output.
Last updated: