Disabling the BGP AS_PATH check function

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the address-family ipv4 unicast command to enter BGP IPv4 address family unicast configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast
  4. Enter the neighbor allowas-in command and specify a number to disable the BGP AS_PATH check function, and specify the number of times that the AS path of a received route may contain the recipient BGP speaker's AS number and still be accepted.
    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