
C613-50186-01 Rev B
Command Reference for AR2050V
1266
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
BGP
AND
BGP4+ C
OMMANDS
NEIGHBOR
REMOVE
-
PRIVATE
-AS (BGP
ONLY
)
neighbor remove-private-AS (BGP only)
Overview
Use this command to remove the private Autonomous System (AS) number from
external outbound updates. Use the
no
variant of this command to revert to the
default (disabled).
Syntax
neighbor <
neighborid
> remove-private-AS
no neighbor <
neighborid
> remove-private-AS
Default
This command is disabled by default.
Mode
Router Configuration or IPv4 Address Family Configuration
Usage
The private AS numbers range from <64512-65535>. Private AS numbers are not
advertised to the Internet. This command is used with external BGP peers only. The
router removes the AS numbers only if the update includes private AS numbers. If
the update includes both private and public AS numbers, the system treats it as an
error.
This command removes private AS numbers for BGP in Router Configuration
mode. This command is not supported for BGP4+ in IPv6 Address Family
Configuration mode. This command removes a private AS number and makes an
update packet with a public AS number as the AS path attribute. So only public AS
numbers are entered in Internet BGP routing tables, and private AS numbers are
not entered in Internet BGP tables.
For the filtering to apply, both peering devices must be set to use either 2-byte or
extended 4- byte ASN (with the same ASN type set on both peers). For example, if
a device (which defaults to use a 4-byte ASN), is peered with a device that defaults
to a 2-byte ASN, then the device using a 2-byte ASN device also needs to be
configured with the command
bgp extended-asn-cap
for the filtering to apply.
Parameter
Description
<
neighborid
>
{
<ip-address>
|
<tag>
}
<ip-address>
The address of an IPv4 BGP neighbor, in dotted
decimal notation A.B.C.D.
<tag>
Name of an existing peer-group. For
information on how to create peer groups, refer
to the
neighbor peer-group (add a neighbor)
When this parameter is used with a command,
the command applies on all peers in the
specified group.