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