C613-50631-01 Rev A Command Reference for IE340 Series 1453
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
BGP AND BGP4+ COMMANDS
NEIGHBOR
LOCAL-AS
neighbor local-as
Overview Use this command to configure a local AS number for the specified BGP or BGP4+
neighbor. This overrides the local AS number specified by the router bgp
command.
Use the no variant of this command to remove the local AS number for the
specified BGP or BGP4+ neighbor.
Syntax
neighbor <neighborid> local-as <as-number>
no neighbor <neighborid> local-as <as-number>
Mode [BGP] Router Configuration or IPv4 Address Family Configuration
Mode [BGP4+] Router Configuration
Usage [BGP4+] When BGP4+ is configured, this command prepends the ASN as defined by the
router bgp command, and adds the ASN as defined by the neighbor local-as
command in front of the actual ASN as defined by the router bgp command. This
makes the peer believe it is peering with the ASN as defined by the neighbor
local-as command.
Parameter Description
<neighborid> {<ip-address>|<ipv6-addr>|<peer-group>}
<ip-address> The address of an IPv4 BGP neighbor, in
dotted decimal notation A.B.C.D.
<ipv6-addr> The address of an IPv6 BGP4+ neighbor,
entered in hexadecimal in the format X:X::X:X.
<peer-group> Enter the name of an existing peer-group. For
information on how to create peer groups,
refer to the neighbor peer-group (add a
neighbor) and neighbor route-map
commands. When this parameter is used with
this command, the command applies on all
peers in the specified group.
<as-number> <1-4294967295> Neighbor’s Autonomous System (AS) number.