neighbor allowas-in

Syntax

neighbor {<IP-ADDR> | <PEER-GROUP-NAME>} allowas-in <LIMIT>

no neighbor {<IP-ADDR> | <PEER-GROUP-NAME>} allowas-in <LIMIT>

Description

Specifies the number of times that the AS path of a received route can contain the AS number of the recipient BGP speaker and still be accepted. When this configuration is applied to a peer-group, all the neighbors that are part of the peer-group inherit this setting.

The no form of this command restores the default setting, which is to reject as a loop any route where the path contains the speaker AS number.

Command context

config-bgp-ipv4-uc

config-bgp-ipv6-uc

config-bgp-l2vpn-evpn

Parameters

<IP-ADDR>

Specifies an IP address in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255, or IPv6 format (xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx), where x is a hexadecimal number from 0 to F.

<PEER-GROUP-NAME>

Specifies a peer group.

<LIMIT>

Specifies the number of times that the AS path of a received route can contain the AS number of the recipient BGP. Range: 1 to 10.

Authority

Administrators or local user group members with execution rights for this command.

Examples

switch(config-bgp-ipv4-uc)# neighbor 1.1.1.1 allowas-in 5
switch(config-bgp-ipv4-uc)# no neighbor 1.1.1.1 allowas-in
switch(config-bgp-ipv6-uc)# neighbor 2001:0db8:85a3::8a2e:0370:7334 allowas-in 5
switch(config-bgp-ipv6-uc)# no neighbor 2001:0db8:85a3::8a2e:0370:7334 allowas-in
switch(config-bgp-ipv4-uc)# neighbor PG allowas-in 5
switch(config-bgp-ipv4-uc)# no neighbor PG allowas-in
switch(config-bgp-l2vpn-evpn)# neighbor 1.1.1.1 allowas-in 5
switch(config-bgp-l2vpn-evpn)# no neighbor 1.1.1.1 allowas-in
switch(config-bgp-l2vpn-evpn)# neighbor PG allowas-in 5
switch(config-bgp-l2vpn-evpn)# no neighbor PG allowas-in