neighbor ignore-leading-as

This command configures EBGP peer routes to not contain the specified neighbor‘s AS.

Syntax

neighbor ip-address ignore-leading-as
no neighbor ip-address ignore-leading-as

Parameters

ip-address Specifies a BGP peer as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format.

Usage

Some routers are capable of propagating routes without appending their own autonomous system number to the AS Path. By default, the S- and 7100-Series Router will drop such routes. The neighbor ignore-leading-as command allows the S- and 7100-Series Router to keep these routes for EBGP peers. This capability may be needed if the peer has policy that prevents it from pre-pending its own AS number to the AS path.

The no neighbor ignore-leading-as command resets this command to the default value of disabled.

Defaults

None.

Mode

BGP Router Configuration.

Example

The following example enables the ignore-leading-as feature:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 159.1.1.9
System(su-config-bgp)->neighbor 1.1.1.1 remote-as 5
System(su-config-bgp)->neighbor 1.1.1.1 ignore-leading-as