local-as

Specifies the BGP autonomous system number (ASN) where the device resides.

Syntax

local-as num
no local-as num

Command Default

No ASN is specified.

Parameters

num
The local ASN. The range is from 1 through 4294967295.

Modes

BGP configuration mode

Usage Guidelines

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

The no form of the command removes the ASN from the device.

Examples

This example assigns a separate local AS number.

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