Configure default-originate to Advertise Default Route on BGP Peer

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

By default, default-originate is disabled.

About this task

Follow this procedure to configure default originate.

Procedure

  1. Run the following command to create a BGP Peer on a tenant VRF:
    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 <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfdmult> 
    
         --ipv4-uc-nbr-default-originate <device-ip,vrf-name:neighbor-ip,true/false>
         --ipv4-uc-nbr-default-originate-route-map <device-ip,vrf-name:neighbor-ip,route-map>
  2. Run the following command to update a BGP Peer on a tenant VRF:
    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 <switch-ip,vrf-name:ipv4-neighbor,bfd-enable(t/f),bfd-interval,bfd-rx,bfdmult> 
    
        --ipv4-uc-nbr-default-originate <device-ip,vrf-name:neighbor-ip,true/false>
        --ipv4-uc-nbr-default-originate-route-map <device-ip,vrf-name:neighbor-ip,route-map>
    Note

    Note

    The ipv4-uc-nbr-default-originate-route-map attribute is an optional attribute.
    Example:
    efa tenant service bgp peer create --name ten1bgppeer1 --tenant tenant11 
         --ipv4-uc-nbr 10.20.246.3,v1:10.20.30.40,50000 
         --ipv4-uc-nbr-bfd 10.20.246.3,v1:10.20.30.40,true 
         --ipv4-uc-nbr-default-originate 10.20.246.3,v1:10.20.30.40,true 
         --ipv4-uc-nbr 10.20.246.4,v1:10.20.30.40,50000 
         --ipv4-uc-nbr-bfd 10.20.246.4,v1:10.20.30.40,true 
         --ipv4-uc-nbr-default-originate 10.20.246.4,v1:10.20.30.40,true 
         --ipv4-uc-nbr-default-originate-route-map 10.20.246.4,v1:10.20.30.40,rmap1
    §efa tenant service bgp peer-group show --detail
    Name     : ten1bgppeer1
    Tenant         : tenant11
    State            : bgp-peer-created
    Description      : 
    
    Static Peer
    -----------
    Device IP                   : 10.20.246.4
    VRF                         : v1
    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
    MD5 Password                : 
    Remove Private AS           : false
    Default Originate           : true
    Default Originate Route Map : rmap1
    Prefix List In              : 
    Prefix List Out             : 
    Route Map In                : 
    Route Map Out               : 
    Dev State                   : provisioned
    App State                   : cfg-in-sync
    
    Device IP          : 10.20.246.4
    VRF                         : v1
    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
    MD5 Password                : 
    Remove Private AS           : false
    Default Originate           : false
    Default Originate Route Map : 
    Prefix List In              : 
    Prefix List Out             : 
    Route Map In                : 
    Route Map Out               : 
    Dev State                   : provisioned
    App State                   : cfg-in-sync
    
    Device IP                   : 10.20.246.3
    VRF                         : v1
    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
    MD5 Password                : 
    Remove Private AS           : false
    Default Originate           : true
    Default Originate Route Map : 
    Prefix List In              : 
    Prefix List Out             : 
    Route Map In                : 
    Route Map Out               : 
    Dev State                   : provisioned
    App State                   : cfg-in-sync
    
    Device IP                   : 10.20.246.3
    VRF                         : v1
    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
    MD5 Password                : 
    Remove Private AS           : false
    Default Originate           : true
    Default Originate Route Map : tt
    Prefix List In              : 
    Prefix List Out             : 
    Route Map In                : 
    Route Map Out               : 
    Dev State                   : provisioned
    App State                   : cfg-in-sync
    
    
    efa tenant service bgp peer show --detail
    ==============================================
    Name             : bgp173-2501
    Tenant           : tenant11
    State            : bgp-peer-created
    Description      :
    Static Peer
    -----------
           Device IP                   : 10.20.246.3
    	VRF                         : v1
    	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
    	MD5 Password                : 
    	Remove Private AS           : false
    	Default Originate           : true
    	Default Originate Route Map : 
    	Prefix List In              : 
    	Prefix List Out             : 
    	Route Map In                : 
    	Route Map Out               : 
    	Dev State                   : provisioned
    	App State                   : cfg-in-sync
    	
          Device IP                   : 10.20.246.4
    	VRF                         : v1
    	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
    	MD5 Password                : 
    	Remove Private AS           : false
    	Default Originate           : true
    	Default Originate Route Map : rmap1
    	Prefix List In              : 
    	Prefix List Out             : 
    	Route Map In                : 
    	Route Map Out               : 
    	Dev State                   : provisioned
    	App State                   : cfg-in-sync   
    ============================================
  3. Verify the switch configuration on the SLX device.
    10.20.246.3
    SLX# show running-config router bgp
    address-family ipv4 unicast vrf v1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 default-originate
      neighbor 10.20.30.40 bfd
      neighbor 10.40.40.252 remote-as 4200000000
      neighbor 10.40.40.252 next-hop-self
      maximum-paths 8
     !
    10.20.246.4
    SLX# show running-config router bgp
    address-family ipv4 unicast vrf v1
      redistribute connected
      neighbor 10.20.30.40 remote-as 50000
      neighbor 10.20.30.40 default-originate route-map rmap1
      neighbor 10.20.30.40 bfd
      neighbor 10.40.40.253 remote-as 4200000000
      neighbor 10.40.40.253 next-hop-self
      maximum-paths 8
     !
    Note

    Note

    For information about commands and supported parameters to configure default-originate attribute, see ExtremeCloud Orchestrator Command Reference, 3.2.0 .