Skip to main content
Esteemed Contributor III
Nov 26, 2021 10:17 AM UTC

Technical Tip: How to hide Local-AS value in BGP

  • Apr 16, 2026 12:17 PM UTC
  • 0 replies
  • 336 views
  • Translate All
Description This article describes the way to hide 'Local-AS' in BGP.
Scope FortiGate.
Solution

The neighbor local-as command is a useful command when doing AS  migration or merging (acquisition of a network that belongs to a different AS) transition period still uses the old AS, defined as the local AS.

 

Refer to the example below:

The Router, which was a member of AS 200, has been migrated to the new AS 100. In this case, the local-as command will be used.

 

ranand_0-1637920276029.png

 

config router bgp  

    set as 100

    set router-id 192.168.1.1  

        config neighbor

            edit “192.168.1.2"

                set remote-as 300

                set local-as 200

                set local-as-replace-as enable

                set send-community6 disable

            next

end

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024