This example configures FRRouting (FRR) on a host to establish BGP and Bidirectional Forwarding Detection (BFD) sessions with NVIDIA DOCA™ HBN running on an NVIDIA® BlueField® system.
Before You Begin
-
Install an FRR build that includes BFD support.
-
Create the host VRFs and assign the host interfaces to the correct VRFs.
-
Replace the addresses, autonomous system numbers, VRF names, interface names, MAC address, and BFD timing values with deployment-specific values.
To confirm that the FRR packages are installed, run:
dpkg -l | grep frr
Configure FRR
The following example establishes BGP sessions in VRFs tenant1_101 and tenant2. Both neighbors use BFD profile host-bfd-profile.
frr defaults datacenter
hostname host
log syslog informational
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
router bgp 1000010
exit
!
router bgp 1000010 vrf tenant1_101
neighbor 21.1.0.9 remote-as external
neighbor 21.1.0.9 bfd
neighbor 21.1.0.9 bfd profile host-bfd-profile
!
address-family ipv4 unicast
redistribute connected
exit-address-family
!
address-family ipv6 unicast
redistribute connected
neighbor 21.1.0.9 activate
exit-address-family
exit
!
router bgp 1000010 vrf tenant2
neighbor 22.10.0.9 remote-as external
neighbor 22.10.0.9 bfd
neighbor 22.10.0.9 bfd profile host-bfd-profile
!
address-family ipv4 unicast
redistribute connected
exit-address-family
!
address-family ipv6 unicast
redistribute connected
neighbor 22.10.0.9 activate
exit-address-family
exit
!
bfd
profile host-bfd-profile
transmit-interval 301
receive-interval 301
minimum-ttl 1
exit
!
exit
!
end
Configure the Host VRFs and Interfaces
The following example places c1_0v0 in tenant1_101 and subinterface c1_0v1.2 in tenant2.
auto lo
iface lo inet loopback
address 10.0.0.10/32
address 2000::10/128
auto tenant1_101
iface tenant1_101
vrf-table auto
auto tenant2
iface tenant2
vrf-table auto
auto c1_0np0
iface c1_0np0
auto c1_0v0
iface c1_0v0
address 21.1.0.10/16
address 2020:0:1:1::10/64
gateway 21.1.0.9
gateway 2020:0:1:1::9
vrf tenant1_101
hwaddress 00:03:00:0a:0a:00
auto c1_0v1
iface c1_0v1
auto c1_0v2
iface c1_0v2
auto c1_0v3
iface c1_0v3
auto c1_0v4
iface c1_0v4
auto c1_0v5
iface c1_0v5
auto c1_0v6
iface c1_0v6
auto c1_0v7
iface c1_0v7
auto c1_0v8
iface c1_0v8
auto c1_0v9
iface c1_0v9
auto c1_1np1
iface c1_1np1
auto c1_1v0
iface c1_1v0
auto c1_1v1
iface c1_1v1
auto c1_0v1.2
iface c1_0v1.2
address 22.10.0.10/16
address 2020:0:2:10::10/64
gateway 22.10.0.9
gateway 2020:0:2:10::9
vrf tenant2
Expected Result
After applying the interface and FRR configuration:
-
The host should have VRFs
tenant1_101andtenant2. -
The BGP sessions to
21.1.0.9and22.10.0.9should be established. -
The corresponding BFD sessions should report an
upstate. -
Connected IPv4 and IPv6 routes from each VRF should be advertised to HBN.
Last updated: