[an error occurred while processing this directive][an error occurred while processing this directive]

Define the Local Autonomous System


Before BGP can function, you need to define a local AS number on the routers in your network. In the example network in BGP Network Topology, all routers are in AS 65432.


To define an AS number on routers in your network, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
    [edit]user@host# edit routing-options
  2. Configure all interfaces to a specific AS:
    [edit routing-options]user@host# set autonomous-system as-number
  3. Verify the configuration:
    user@host# show
    user@host# commit

Sample Output

user@R1> edit
Entering configuration mode

user@R1# edit routing-options

[edit routing-options]
user@R1# set autonomous-system 65432

[edit routing-options]
user@R1# show 
[...Output truncated...]
autonomous-system 65432;

[edit routing-options]
user@R6# commit 
commit complete


The output shows that router R1 resides in AS 65432. All other routers in the example network shown in BGP Network Topology also reside in AS 65432.

Published: 2010-01-25

[an error occurred while processing this directive]