.. _example_protocols_bgp_neighbor_allowas-in: ########## Allowas-In ########## This scenario demonstrates how to configure the allowas-in feature for a BGP neighbor. By default, BGP rejects routes that contain its own AS number in the AS_PATH to prevent loops. The allowas-in feature allows a router to accept routes with its own AS in the path up to a specified number of occurrences, which is useful in hub-and-spoke eBGP topologies where the same AS may appear multiple times legitimately. ****************************** Test eBGP - Allowas-in enabled ****************************** Description =========== Test to verify that allowas-in allows routes with own AS in the AS_PATH. DUT0 is configured with allowas-in number 3. DUT0 should now accept the route even though it contains its own AS number. Scenario ======== .. include:: allowas-in/testebgp-allowas-inenabled .. raw:: html