local-as (bgp-neighbor-config)
Configures this neighbor‘s local AS number
Supported in the following platforms:
- Service Platforms — NX9500, NX9600
Syntax
local-as <1-4294967295> {no-prepend}
Parameters
local-as <1-4294967295> {no-prepend}
local-as <1-4294967295> {no-prepend} |
Configures the local AS number
- <1-4292967295> – Specify a value from 1 - 4294967295.
- no-prepend – Optional. Select to enable. When enabled, the local AS number
is not prepended to route updates from eBGP peers. AS numbers are prepended
to route updates by default.
|
Examples
nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#local-as 20 no-prepend
nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#show context
bgp neighbor 192.168.13.99
advertisement-interval 100
allowas-in 10
attribute-unchanged as-path
capability orf prefix-list both
default-originate
description neighbor "This neighbor is an external AS neighbor"
disable-connected-check
dont-capability-negotiate
ebgp-multihop 20
enforce-multihop
local-as 20 no-prepend
nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#
Related Commands
no (bgp-neighbor-config) |
Removes the local AS number. And also reverts prepending
of AS numbers to default (allows prepending). |