Configuring a local AS number

The local AS number (ASN) identifies the AS in which the BGP device resides. The following task configures the local ASN in which the device resides.
Note: Use well-known private ASNs in the range from 64512 through 65535 if the AS number of the organization is not known.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 1000

The following example configures the local ASN for a device.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000