186
Command reference
peer ignore-first-as
Use peer ignore-first-as to configure BGP to ignore the first AS number of EBGP route updates for
a peer or peer group.
Use undo peer ignore-first-as to restore the default.
Syntax
peer { group-name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } ignore-first-as
undo peer { group-name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] }
ignore-first-as
Default
BGP checks the first AS number of a received EBGP route update.
Views
BGP instance view
BGP-VPN instance view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The
peer group must have created.
ipv4-address: Specifies a peer by its IPv4 address. The peer must have been created.
mask-length: Specifies a mask length in the range of 0 to 32. You can use the ipv4-address and
mask-length arguments together to specify a subnet. If you specify a subnet, BGP ignores the first
AS number of EBGP route updates for all dynamic peers in the subnet.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
prefix-length: Specifies a prefix length in the range of 0 to 128. You can use the ipv6-address and
prefix-length arguments together to specify a subnet. If you specify a subnet, BGP ignores the first
AS number of EBGP route updates for all dynamic peers in the subnet.
Usage guidelines
By default, BGP checks the first AS number of a received EBGP route update. If the first AS number
is neither the AS number of the BGP peer nor a private AS number, the BGP router disconnects the
BGP session to the peer.
The peer ignore-first-as command takes effect only on routes received after the configuration of the
command. After you configure the undo peer ignore-first-as command, BGP requests the EBGP
peer or peer group to resend the routes.