BGP Peer

BGP Peer Instance Create - Static Peer

# efa tenant service bgp peer create --name <peer-name> --tenant <tenant-name> --ipv4-uc-nbr <switch-ip,vrf-name:ipv4-neighbor,remote-as> --ipv4-uc-nbr-bfd <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(true/false),bfd-interval,bfd-rx,bfd-mult> --ipv4-uc-nbr-update-source-ip <switch-ip,vrf-name:ipv4-neighbor,update-source-ip> --ipv4-uc-nbr-next-hop-self <switch-ip,vrf-name:ipv4-neighbor,next-hop-self(true/false)> --ipv6-uc-nbr <switch-ip,vrf-name:ipv6-neighbor,remote-as> --ipv6-uc-nbr-bfd <switch-ip,vrf-name:ipv6-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfd-mult> --ipv6-uc-nbr-update-source-ip <switch-ip,vrf-name:ipv6-neighbor,update-source-ip> --ipv6-uc-nbr-next-hop-self <switch-ip,vrf-name:ipv6-neighbor,next-hop-self(true/false)>

Example

# efa tenant service bgp peer create --name bgpservice1 --tenant tenant1 --ipv4-uc-nbr 10.24.80.134,red:10.20.30.40,5000 --ipv4-uc-nbr-bfd 10.24.80.134,red:10.20.30.40,true,100,200,5 --ipv4-uc-nbr-update-source-ip 10.24.80.134,red:10.20.30.40,11.22.20.33 --ipv4-uc-nbr-next-hop-self 10.24.80.134,red:10.20.30.40,true

BGP Peer Instance Show - Static Peer

# efa tenant service bgp show

Example

# efa tenant service bgp peer show
===========================================================================================================================================================
Name : bgpservice1
Tenant : tenant1
State : bs-state-created
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| Device IP | VRF | AFI | SAFI | REMOTE IP | REMOTE ASN | BFD Enabled | BFD Interval | BFD Rx | BFD Multiplier | Dev-state | App-state |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 10.24.80.134 | red | ipv4 | unicast | 10.20.30.40 | 5000 | true | 100 | 200 | 5 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
============================================================================================================================================================

BGP Peer Instance Update - Static Peer Add

# efa tenant service bgp peer update --name <peer-name> --tenant <tenant-name> --operation peer-add --ipv4-uc-nbr <switch-ip,vrf-name:ipv4-neighbor,remote-as> --ipv4-uc-nbr-bfd <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfd-mult> --ipv4-uc-nbr-update-source-ip <switch-ip,vrf-name:ipv4-neighbor,update-source-ip> --ipv4-uc-nbr-next-hop-self <switch-ip,vrf-name:ipv4-neighbor,next-hop-self(true/false)> --ipv6-uc-nbr <switch-ip,vrf-name:ipv6-neighbor,remote-as> --ipv6-uc-nbr-bfd <switch-ip,vrf-name:ipv6-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfd-mult> --ipv6-uc-nbr-update-source-ip <switch-ip,vrf-name:ipv6-neighbor,update-source-ip> --ipv6-uc-nbr-next-hop-self <switch-ip,vrf-name:ipv6-neighbor,next-hop-self(true/false)>

Example

# efa tenant service bgp peer update --name bgpservice1 --tenant tenant1 --operation peer-add --ipv6-uc-nbr 10.24.80.134,red:10::40,5000 --ipv6-uc-nbr-bfd 10.24.80.134,red:10::40,true,100,200,5 --ipv6-uc-nbr-update-source-ip 10.24.80.134,red:10::40,11::22 --ipv6-uc-nbr-next-hop-self 10.24.80.134,red:10::40,true
efa tenant service bgp peer show
============================================================================================================================================================
Name : bgpservice1
Tenant : tenant1
State : bs-state-created
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| Device IP | VRF | AFI | SAFI | REMOTE IP | REMOTE ASN | BFD Enabled | BFD Interval | BFD Rx | BFD Multiplier | Dev-state | App-state |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 10.24.80.134 | red | ipv6 | unicast | 10::40 | 5000 | false | 100 | 200 | 5 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 10.24.80.134 | red | ipv4 | unicast | 10.20.30.40 | 5000 | false | 100 | 200 | 5 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
============================================================================================================================================================

Switch Config

Rack1-Device1# sh run router bgp
router bgp
local-as 100
address-family ipv4 unicast
!
address-family ipv4 unicast vrf red
neighbor 10.20.30.40 remote-as 5000
neighbor 10.20.30.40 next-hop-self
neighbor 10.20.30.40 bfd
neighbor 10.20.30.40 bfd interval 100 min-rx 200 multiplier 5
neighbor 10.20.30.40 update-source 11.22.20.33
!
address-family ipv6 unicast
!
address-family ipv6 unicast vrf red
neighbor 10::40 remote-as 5000
neighbor 10::40 next-hop-self
neighbor 10::40 bfd
neighbor 10::40 bfd interval 100 min-rx 200 multiplier 5
neighbor 10::40 update-source 11::22
!
address-family l2vpn evpn
!

BGP Peer Instance Update - Static Peer Delete

# efa tenant service bgp peer update --name <peer-name> --tenant <tenant-name> --operation peer-delete --ipv4-unicast-neighbor <switch-ip,vrf-name:ipv4-neighbor> --ipv6-unicast-neighbor <switch-ip,vrf-name:ipv4-neighbor >

Example

# efa tenant service bgp peer update --name bgpservice1 --tenant tenant1 --operation peer-delete --ipv4-unicast-neighbor 10.24.80.134,red:10.20.30.40
# efa tenant service bgp show
============================================================================================================================================================
Name : bgpservice1
Tenant : tenant1
State : bs-state-created
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| Device IP | VRF | AFI | SAFI | REMOTE IP | REMOTE ASN | BFD Enabled | BFD Interval | BFD Rx | BFD Multiplier | Dev-state | App-state |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
| 10.24.80.134 | red | ipv6 | unicast | 10::40 | 5000 | false | 0 | 0 | 0 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+-------------+------------+-------------+--------------+--------+----------------+-------------+-------------+
============================================================================================================================================================

BGP Peer Instance Create - Dynamic Peer

# efa tenant service bgp peer create --name <peer-name> --tenant <tenant-name> --ipv4-uc-dyn-nbr <switch-ip,vrf-name:listen-range,peer-group-name,listen-limit> --ipv6-uc-dyn-nbr <switch-ip,vrf-name:listen-range,peer-group-name,listen-limit>

Example

# efa tenant service bgp peer create --name bgpservice1 --tenant tenant1 --operation peer-add –ipv4-uc-dyn-nbr 10.24.80.134,red:11::22/127,pg1,20

BGP Peer Instance Show - Dynamic Peer

Example

# efa tenant service bgp peer show
============================================================================================================================================================
Name : bgpservice1
Tenant : tenant1
State : bs-state-created
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
| Device IP | VRF | AFI | SAFI | LISTEN RANGE | Peer Group | LISTEN LIMIT | Dev-state | App-state |
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
| 10.24.80.134 | red | ipv4 | unicast | 11.22.33.44/30 | pg1 | 10 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+ | 10.24.80.134 | red | ipv6 | unicast | 11::22/127 | pg1 | 20 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
============================================================================================================================================================

Switch Config

Rack1-Device1# sh run router bgp
router bgp
local-as 100
neighbor pg1 peer-group
neighbor pg1 remote-as 6000
address-family ipv4 unicast
!
address-family ipv4 unicast vrf red
listen-range 11.22.33.44/30 peer-group pg1 limit 10
!
address-family ipv6 unicast
!
address-family ipv6 unicast vrf red
listen-range 11::22/127 peer-group pg1 limit 20
!
address-family l2vpn evpn
!
!

BGP Peer Instance Update - Dynamic Peer Delete

# efa tenant service bgp peer update --name <peer-name> --tenant <tenant-name> --operation peer-delete --ipv4-uc-dyn-nbr <switch-ip,vrf-name:listen-range,peer-group-name> --ipv6-uc-dyn-nbr <switch-ip,vrf-name:listen-range,peer-group-name>

Example

# efa tenant service bgp peer create --name bgpservice1 --tenant tenant1 --operation peer-delete –ipv4-uc-dyn-nbr 10.24.80.134,red:11::22/127,pg1

# efa tenant service bgp peer show
============================================================================================================================================================
Name : bgpservice1
Tenant : tenant1
State : bs-state-created
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
| Device IP | VRF | AFI | SAFI | LISTEN RANGE | Peer Group | LISTEN LIMIT | Dev-state | App-state |
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
| 10.24.80.134 | red | ipv4 | unicast | 11.22.33.44/30 | pg1 | 10 | provisioned | cfg-in-sync |
+--------------+-----+------+---------+----------------+------------+--------------+-------------+-------------+
============================================================================================================================================================

BGP Peer Instance Delete

efa tenant service bgp peer delete –-name <peer-name> --tenant <tenant-name>

Example

# efa tenant service bgp peer delete –name bgpservice1 –tenant tenant1