Configure send-community Support on Tenant BGP Peer

About this task

To enable external connectivity, you can configure the send-community attribute when you create or update the BGP peer (IPv4 and IPv6).

Procedure

  1. Run the following command to configure send-community when you create a BGP peer:
    efa tenant service bgp peer create --name <bgp-peer-name> --tenant <tenant-name> 
                       --ipv4-uc-nbr <device-ip,vrf-name:neighbor-ip,remote-asn> 
                       --ipv4-uc-nbr-bfd <device-ip,vrf-name:neighbor-ip,true|false> 
                       --ipv4-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,
                              all|both|extended|large|standard|large-and-standard|large-and-extended>
                       --ipv6-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,
                              all|both|extended|large|standard|large-and-standard|large-and-extended>
  2. Run the following command to configure send-community when you update a BGP peer:
    efa tenant service bgp peer update --name <bgp-peer-name> --tenant <tenant-name> 
                       --operation peer-add
                       --ipv4-uc-nbr <device-ip,vrf-name:neighbor-ip,remote-asn> 
                       --ipv4-uc-nbr-bfd <device-ip,vrf-name:neighbor-ip,true|false> 
                       --ipv4-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip,
                              all|both|extended|large|standard|large-and-standard|large-and-extended>
                                   --ipv6-uc-nbr-send-community <device-ip,vrf-name:neighbor-ip, 
                              all|both|extended|large|standard|large-and-standard|large-and-extended>
    Note

    Note

    ipv4-uc-nbr-send-community and ipv6-uc-nbr-send-community are an optional attributes.

    Example

    efa tenant service bgp peer create --name ten1bgppeer1 --tenant ten1 
               --ipv4-uc-nbr 10.20.246.15,ten1vrf1:10.20.30.40,50000 
               --ipv4-uc-nbr-bfd 10.20.246.15,ten1vrf1:10.20.30.40,true 
               --ipv4-uc-nbr-send-community 10.20.246.15,ten1vrf1:10.20.30.40,all 
               --ipv4-uc-nbr 10.20.246.16,ten1vrf1:10.20.30.40,50000 
               --ipv4-uc-nbr-bfd 10.20.246.16,ten1vrf1:10.20.30.40,true 
               --ipv4-uc-nbr-send-community 10.20.246.16,ten1vrf1:10.20.30.40,both 
    
    efa tenant service bgp peer update --name ten1bgppeer1 --tenant ten1 
               --operation peer-add 
               --ipv4-uc-nbr 10.20.246.15,ten1vrf1:10.20.30.50,50000 
               --ipv4-uc-nbr-bfd 10.20.246.15,ten1vrf1:10.20.30.50,true 
               --ipv4-uc-nbr-send-community 10.20.246.15,ten1vrf1:10.20.30.50,standard
               --ipv4-uc-nbr 10.20.246.16,ten1vrf1:10.20.30.50,50000 
               --ipv4-uc-nbr-bfd 10.20.246.16,ten1vrf1:10.20.30.50,true 
               --ipv4-uc-nbr-send-community 10.20.246.16,ten1vrf1:10.20.30.50,extended
    efa tenant service bgp peer show --detail
    ==================================================
    Name             : ten1bgppeer1
    Tenant           : ten1
    State            : bs-state-created
    Description      :
    
    Static Peer
    -----------
            Device IP        : 10.20.246.15
            VRF              : ten1vrf1
            AFI              : ipv4
            SAFI             : unicast
            Remote IP        : 10.20.30.40
            Remote ASN       : 50000
            Next Hop Self    : false
            Update Source IP :
            BFD Enabled      : true
            BFD Interval     : 0
            BFD Rx           : 0
            BFD Multiplier   : 0
            Default Originate: 
            Default Originate
            Route Map        : 
            Send Community   : all
            Dev State        : provisioned
            App State        : cfg-in-sync
    
            Device IP        : 10.20.246.15
            VRF              : ten1vrf1
            AFI              : ipv4
            SAFI             : unicast
            Remote IP        : 10.20.30.50
            Remote ASN       : 50000
            Next Hop Self    : false
            Update Source IP :
            BFD Enabled      : true
            BFD Interval     : 0
            BFD Rx           : 0
            BFD Multiplier   : 0
            Default Originate: false
            Default Originate
            Route Map        : 
            Send Community   : standard
    
            Dev State        : provisioned
            App State        : cfg-in-sync
    ==========================================
    
    
    
    
    
            Device IP        : 10.20.246.16
            VRF              : ten1vrf1
            AFI              : ipv4
            SAFI             : unicast
            Remote IP        : 10.20.30.40
            Remote ASN       : 50000
            Next Hop Self    : false
            Update Source IP :
            BFD Enabled      : true
            BFD Interval     : 0
            BFD Rx           : 0
            BFD Multiplier   : 0
            Default Originate: false
            Default Originate
            Route Map        : 
            Send Community   : both
            Dev State        : provisioned
            App State        : cfg-in-sync
    
            Device IP        : 10.20.246.16
            VRF              : ten1vrf1
            AFI              : ipv4
            SAFI             : unicast
            Remote IP        : 10.20.30.50
            Remote ASN       : 50000
            Next Hop Self    : false
            Update Source IP :
            BFD Enabled      : true
            BFD Interval     : 0
            BFD Rx           : 0
            BFD Multiplier   : 0
            Default Originate: false
            Default Originate
            Route Map        :
            Send Community   : extended
            Dev State        : provisioned
            App State        : cfg-in-sync
    
    Dynamic Peer
    -----------
            0 Records
    ==========================================
  3. Verify the configuration on SLX device.
    Rack1-Device1# show running-config router bgp
    router bgp
     local-as 4200000000
     capability as4-enable
     fast-external-fallover
     neighbor 10.20.20.4 remote-as 4200000000
     neighbor 10.20.20.4 next-hop-self
     address-family ipv4 unicast
      network 172.31.254.46/32
      network 172.31.254.123/32
      maximum-paths 8
      graceful-restart
     !
     address-family ipv4 unicast vrf ten1vrf1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 send-community all
      neighbor 10.20.30.40 bfd
      neighbor 10.20.30.50 remote-as 50000
      neighbor 10.20.30.50 send-community standard
      neighbor 10.20.30.50 bfd
      maximum-paths 8
     !
     address-family ipv6 unicast
     !
     address-family ipv6 unicast vrf ten1vrf1
      redistribute connected
      maximum-paths 8
     !
     address-family l2vpn evpn
      graceful-restart
     !
    !
    Rack1-Device2# show running-config router bgp
    router bgp
     local-as 4200000000
     capability as4-enable
     fast-external-fallover
     neighbor 10.20.20.5 remote-as 4200000000
     neighbor 10.20.20.5 next-hop-self
     address-family ipv4 unicast
      network 172.31.254.46/32
      network 172.31.254.176/32
      maximum-paths 8
      graceful-restart
     !
     address-family ipv4 unicast vrf ten1vrf1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 send-community both
      neighbor 10.20.30.40 bfd
      neighbor 10.20.30.50 remote-as 50000
      neighbor 10.20.30.50 send-community extended
      neighbor 10.20.30.50 bfd
      maximum-paths 8
     !
     address-family ipv6 unicast
     !
     address-family ipv6 unicast vrf ten1vrf1
      redistribute connected
      maximum-paths 8
     !
     address-family l2vpn evpn
      graceful-restart
     !
    !