neighbor local-as

This command specifies a local Autonomous System number.

Syntax

neighbor {<neighbor tag>|a.b.c.d|X:X::X:X} local-as <AS number> [no-prepend]

Command

Description

a.b.c.d|X:X::X:X

Defines the IP address of the neighbor (IPv4 or IPv6).

neighbor tag

Defines the neighbor tag.

AS number

Defines a local AS number (1-65535).

no-prepend

Does not prepend local-as to updates from BGP peers.

Default

NA

Command Mode

Privileged User

Example

This example configures the router to not prepend the Autonomous System number 200 to routes that are received from external peers.

(config-data)# router bgp 1
(conf-router)# neighbor 10.12.5.10 remote-as 100
(conf-router)# neighbor 10.12.5.10 local-as 200 no-prepend