Create a BGP Peer Group

You can configure a BGP peer group.

About this task

Follow this procedure to configure a BGP peer group.

Procedure

  1. To create a BGP peer group, run the following command:
    # efa tenant service bgp peer-group create --name <peer-group-name> --tenant <tenant-name> --description <description>
        --pg-name <switch-ip:pg-name> 
        --pg-asn <switchip:pg-name,remote-asn> 
        --pg-bfd <switch-ip:pg-name,bfd-enable(true/false),interval,minrx,multiplier> 
        --pg-next-hop-self <switch-ip:pg-name,next-hop-self(true/false/always)> 
        -–pg-update-source-ip <switch-ip:pg-name,update-source-ip>
        --pg-ipv6-uc-nbr-activate <device-ip,pg-name:true/false>

    The following example creates a BGP peer group:

    # efa tenant service bgp peer-group create –name ten1BgpPG1 --tenant tenant1 
        --pg-name 10.24.80.134:pg1 
        --pg-asn 10.24.80.134:pg1,6000 
        --pg-bfd 10.24.80.134:pg1,true,100,200,5 
        --pg-next-hop-self 10.24.80.134:pg1,true 
        --pg-update-source-ip 10.24.80.134:pg1,10.20.30.40
        --pg-ipv6-uc-nbr-activate 10.20.246.29,v1:true
  2. To update a BGP peer group, run the following command:
    # efa tenant service bgp peer-group update --name <peer-group-name> --tenant <tenant-name> 
    	--operation <peer-group-add|peer-group-delete|peer-group-desc-update> 
    	--description <description> --pg-name <switch-ip:pg-name> --pg-asn <switch-ip:pg-name,remote-asn> 
    	--pg-bfd <switch-ip:pg-name,bfd-enable(true/false),interval,min-rx,multiplier> 
    	--pg-next-hop-self <switch-ip:pg-name,next-hop-self(true/false/always)> 
    	--pg-update-source-ip <switch-ip:pg-name,update-source-ip>
    	--pg-ipv6-uc-nbr-activate 10.20.246.29,v1:true

    The following is an example of updating a BGP peer group:

    efa tenant service bgp peer-group update --name ten1BgpPG1 --tenant tenant1 
    	--operation peer-group-add --pg-name 10.24.80.134:pg2 –pg-asn 10.24.80.134:pg2,7000 --pg-bfd 10.24.80.134:pg2,true,200,300,6 --pg-next-hop-self 10.24.80.134:pg2,true --pg-update-source-ip 10.24.80.134:pg2,10.20.30.41 --pg-ipv6-uc-nbr-activate 10.20.246.29,v1:true
  3. To show a BGP peer group, run the following command:
    efa tenant service bgp peer-group show
    =====================================================================================================
    Name : ten1BgpPG1
    Tenant : tenant1
    State : bs-state-created
    +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+
    | Device IP    |PeerGroup | REMOTE| ASN | BFD    | BFD     | BFD| BFD       | Dev-state  | App-state|
    |              |          | ASN   |     | Enabled| Interval| Rx | Multiplier|            |          |
    +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+
    | 10.24.80.134 | pg1      | 6000  | true| 100    | 200     | 5  |provisioned| cfg-in-sync|          | 
    | 10.24.80.134 | pg2      | 7000  | true| 200    | 300     | 6  |provisioned| cfg-in-sync|          |
    +--------------+----------+-------+-----+--------+---------+----+-----------+------------+----------+
    =====================================================================================================
  4. To delete a BGP peer group, run the following command:
    # efa tenant service bgp peer-group delete --name ten1BgpPG1 --tenant tenant1
  5. Verify the switch configuration on SLX devices.
    Rack1-Device1# show running-config router bgp
    router bgp
    local-as 100
    neighbor pg1 peer-group
    neighbor pg1 remote-as 6000
    neighbor pg1 update-source 10.20.30.40
    neighbor pg1 next-hop-self neighbor pg1 bfd
    neighbor pg1 bfd interval 100 min-rx 200 multiplier 5
    neighbor pg2 peer-group
    neighbor pg2 remote-as 7000
    neighbor pg2 update-source 10.20.30.41
    neighbor pg2 next-hop-self neighbor pg2 bfd
    neighbor pg2 bfd interval 200 min-rx 300 multiplier 6
    address-family ipv4 unicast
    !
    address-family ipv6 unicast
    !
    address-family l2vpn evpn
    !