local-as

Specifies the BGP autonomous system number (ASN) where the device resides.
Syntax
local-as num
no local-as num
Parameters
num
The local ASN. The range is from 1 through 4294967295.
Modes

BGP configuration mode

Usage Guidelines

Use the no form of this command to remove the ASN from the device.

ASNs in the range from 64512 through 65535 are private numbers that are not advertised to the external community.

Examples

This example assigns a separate local AS number.

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