Use this command to configure BGP to accept prefixes even if local ASN is part of the AS_PATH attribute. A neighbor can inherit this configuration from a peer template.
| Default | Disabled |
| Format | neighbor {ipv4-address | ipv6-address [interface interface-name] | autodetect interface interface-name} allowas-in |
| Mode | BGP Router Config |
| Parameter | Description |
|---|---|
| ipv4-address | The neighbor's IPv4 address. |
| ipv6-address [interface interface-name] | The neighbor's IPv6 address. If the neighbor's IPv6 address is a link local address, the local interface must also be specified. |
| autodetect interface interface-name | The routing interface on which the neighbor's link local IPv6 address is auto detected. |
| allowas-in count | The maximum no of occurrences of the local ASN allowed in the AS_PATH attribute received in the prefix updates. The allowed range is 1 to 10. |
Example:
(R1) (Config)# router bgp 65000 (R1) (Config-router)# neighbor 172.20.1.2 remote-as 65001 (R1) (Config-router)# neighbor 172.20.1.2 allowas-in 1 (R1) (Config-router)# neighbor 2001::2 remote-as 65003 (R1) (Config-router)# neighbor 2001::2 allowas-in 3