neighbor allowas-in
Syntax
neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} allowas-in <NUMBER>
no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} allowas-in <NUMBER>
Description
This command specifies the number of times that the AS path of a received route might contain the AS number of the recipient BGP speaker and still be accepted. When this configuration is applied for a peer-group, all the neighbors that are part of the peer-group will inherit this feature.
The
no
form of this command restores the default state, which is to reject as a loop any route where the path contains the speaker AS number.
Command context
config-bgp-ipv4-uc
or
config-bgp-ipv6-uc
Parameters
<IP-ADDRESS>
Specifies an IP address.
<PEER-GROUP-NAME>
Specifies a peer group.
<NUMBER>
Value of allowas-in. Range: 1-10.
Authority
Administrators
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