A device can be configured so that the AS_PATH check function for routes learned from a specific location is disabled, and routes that contain the recipient BGP speaker's AS number are not rejected.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv6u)# neighbor 10.1.1.1 allowas-in 3
The following example specifies that the AS path of a received route may contain the recipient BGP speaker's AS number three times and still be accepted.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# neighbor 10.1.1.1 allowas-in 3