Create BGP Dynamic Peer

You can configure BGP dynamic peer on a tenant BGP peer.

About this task

Follow this procedure to configure a BGP dynamic peer.

Procedure

  1. To create a BGP dynamic peer when you create a tenant BGP peer, run the following command:
    The listen limit is an optional attribute when you create a BGP 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
  2. To view a BGP dynamic peer, run the following command:
    # efa tenant service bgp peer show
    ===================================================================================
    Name : bgpservice1
    Tenant : tenant1
    State : bs-state-created
    +--------------+-----+------+---------+----------------+------+-------+------------+------------+
    | Device IP    | VRF | AFI  | SAFI    | LISTEN RANGE   | Peer | LISTEN| Dev-state  | App-state  |
    |              |     |      |         |                | Group| LIMIT |            |            |
    +--------------+-----+------+---------+----------------+------+-------+------------+------------+
    | 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|
    +--------------+-----+------+---------+----------------+------+-------+------------+------------+
    ===================================================================================
  3. Verify the switch configuration on SLX device.
    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
    !
    !
  4. To delete a dynamic peer when you update a BGP peer, run the following command:
    # 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 | Dev-state  | App-state  |
    |             |     |     |        |               | Group     | LIMIT  |            |            |
    +-------------+-----+-----+--------+---------------+-----------+--------+------------+------------+
    | 10.24.80.134| red | ipv4| unicast| 11.22.33.44/30| pg1       | 10     | provisioned| cfg-in-sync|
    +-------------+-----+-----+--------+---------------+-----------+--------+------------+------------+
    ==================================================================================
  5. To delete a BGP peer, run the following command:
    efa tenant service bgp peer delete –-name <peer-name> --tenant <tenant-name>

    Example

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