Skip to main content
Contributor
November 26, 2021

Technical Tip: How to Remove private AS in BGP

  • November 26, 2021
  • 0 replies
  • 279 views
Description This article describes the way to remove private AS in BGP.
Scope  
Solution

Private AS numbers should not be advertised into the Internet.

 

The private AS numbers must be removed from the AS path before the customer BGP routes are advertised to other service providers.

 

This can be achieved by command 'remove-private-as'.

 

Sample Configuration:

 

# config router bgp  

    set as <local-as-value>  

# config neighbor

    edit "neighbor-id"

        set remove-private-as enable

       set remote-as <remote-as-value>

    next

end