Configure Out-of-band for a Tenant BGP Peer or Peer Group
About this task
Create out-of-band (OOB) BGP peer group and BGP static or dynamic peer for the use in EFA. Provide the exact BGP peer group or BGP peer configuration in EFA. The configuration enables EFA to manage the BGP peer group and BGP peer created by OOB.
Procedure
- On both devices, run the show running-config router bgp command to configure OOB.
-
Run the following command for
EFA consumption of OOB BGP Peer Group:
(efa:root)root@node-2:~# efa tenant service bgp peer-group create --name ten1bgppg1 --tenant ten1 --pg-name 10.20.246.15:pg1 --pg-asn 10.20.246.15,pg1:65001 --pg-name 10.20.246.16:pg1 --pg-asn 10.20.246.16,pg1:65001 Error : conflicting peer group: [10.20.246.15,pg1:,65001,false,,] and [10.20.246.15,pg1:,65002,false,,] which is not created by Tenant service (efa:root)root@node-2:~# efa tenant service bgp peer-group create --name ten1bgppg1 --tenant ten1 --pg-name 10.20.246.15:pg1 --pg-asn 10.20.246.15,pg1:65002 --pg-name 10.20.246.16:pg1 --pg-asn 10.20.246.16,pg1:65001 Error : conflicting peer group: [10.20.246.16,pg1:,65001,false,,] and [10.20.246.16,pg1:,65002,false,,] which is not created by Tenant service (efa:root)root@node-2:~# efa tenant service bgp peer-group create --name ten1bgppg1 --tenant ten1 --pg-name 10.20.246.15:pg1 --pg-asn 10.20.246.15,pg1:65002 --pg-name 10.20.246.16:pg1 --pg-asn 10.20.246.16,pg1:65002 BgpService created successfully. (efa:root)root@node-2:~# efa tenant service bgp peer-group show ============================================================================================================================================================= Name : ten1bgppg1 Tenant : ten1 State : bgp-pg-created +--------------+------------+--------+----------+-----------+---------+--------------------------+-------------+-------------+ | Device IP | Peer Group | Remote | Next Hop | Update | BFD | BFD | Dev State | App State | | | | ASN | Self | Source IP | Enabled | [Interval,Rx,Multiplier] | | | +--------------+------------+--------+----------+-----------+---------+--------------------------+-------------+-------------+ | 10.20.246.16 | pg1 | 65002 | false | | false | | provisioned | cfg-in-sync | +--------------+------------+--------+----------+-----------+---------+--------------------------+-------------+-------------+ | 10.20.246.15 | pg1 | 65002 | false | | false | | provisioned | cfg-in-sync | +--------------+------------+--------+----------+-----------+---------+--------------------------+-------------+-------------+ BGP PeerGroup Details =============================================================================================================================================================
-
Run the efa tenant service bgp peer
create command for EFA consumption of OOB BGP Peer.
(efa:root)root@node-2:~# efa tenant service bgp peer create --name ten1bgppeer1 --tenant ten1 --ipv4-uc-dyn-nbr 10.20.246.15,ten1vrf1:10.20.30.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.15,ten1vrf1:10.20.40.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.16,ten1vrf1:10.20.30.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.16,ten1vrf1:10.20.40.0/23,pg1,50 Error : conflicting dynamic neighbors: [10.20.246.16,ten1vrf1:10.20.40.0/23,pg1,50] and [10.20.246.16,ten1vrf1:10.20.40.0/23,pg1,100] (efa:root)root@node-2:~# efa tenant service bgp peer create --name ten1bgppeer1 --tenant ten1 --ipv4-uc-dyn-nbr 10.20.246.15,ten1vrf1:10.20.30.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.15,ten1vrf1:10.20.40.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.16,ten1vrf1:10.20.30.0/23,pg1,100 --ipv4-uc-dyn-nbr 10.20.246.16,ten1vrf1:10.20.40.0/23,pg1,100 BGP Peer created successfully. (efa:root)root@node-2:~# efa tenant service bgp peer show ============================================================================================================================================================= Name : ten1bgppeer1 Tenant : ten1 State : bgp-peer-created +-----------+-----+-----+------+-----------+------------+----------+-----------+---------+--------------------------+-----------+-----------+ | Device IP | VRF | AFI | SAFI | Remote IP | Remote ASN | Next Hop | Update | BFD | BFD | Dev State | App State | | | | | | | | Self | Source IP | Enabled | [Interval,Rx,Multiplier] | | | +-----------+-----+-----+------+-----------+------------+----------+-----------+---------+--------------------------+-----------+-----------+ Static Peer Details +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ | Device-IP | VRF | AFI | SAFI | Listen Range | Listen | Peer Group | Dev State | App State | | | | | | | Limit | | | | +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ | 10.20.246.16 | ten1vrf1 | ipv4 | unicast | 10.20.30.0/23 | 100 | pg1 | provisioned | cfg-in-sync | +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ | 10.20.246.16 | ten1vrf1 | ipv4 | unicast | 10.20.40.0/23 | 100 | pg1 | provisioned | cfg-in-sync | +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ | 10.20.246.15 | ten1vrf1 | ipv4 | unicast | 10.20.30.0/23 | 100 | pg1 | provisioned | cfg-in-sync | +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ | 10.20.246.15 | ten1vrf1 | ipv4 | unicast | 10.20.40.0/23 | 100 | pg1 | provisioned | cfg-in-sync | +--------------+----------+------+---------+---------------+--------+------------+-------------+-------------+ Dynamic Peer Details =============================================================================================================================================================