.. _example_protocols_bgp_neighbor_address-family_ipv6-unicast_allowas-in: ########## Allowas-In ########## This scenario demonstrates how to configure the allowas-in feature for IPv6 BGP neighbors. 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 IPv6 - Allowas-in disabled (default) ********************************************** Description =========== Test to verify that by default BGP rejects routes containing its own AS in the AS_PATH. DUT1 prepends DUT0's AS (100) to the AS_PATH, simulating a route that has traversed DUT0's AS. DUT0 should reject this route because it contains its own AS number. Scenario ======== .. include:: allowas-in/testebgpipv6-allowas-indisabled(default) .. raw:: html