.. _example_protocols_bgp_peer-group_remove-private-as: ################# Remove-Private-As ################# .. sidebar:: Contents .. contents:: :depth: 2 :local: Scenario to verify BGP **peer-group remove-private-as** inheritance. When ``remove-private-as`` is configured on a peer-group, private AS numbers are stripped from the AS-path before advertising routes to members of the group. .. image:: remove-private-as.svg :width: 400 ************************************************************** Test eBGP - Without remove-private-as shows private AS in path ************************************************************** Description =========== Baseline test showing default behavior where private AS numbers are visible in the AS-path. DUT1 uses private AS 65001 and originates route 192.168.100.0/24. DUT0 (AS 100) forwards to DUT2 (member of peer-group without remove-private-as). DUT2 should see the full AS-path including the private AS number. Scenario ======== .. include:: remove-private-as/testebgp-withoutremove-private-asshowsprivateasinpath .. raw:: html
******************************************************************** Test eBGP - Peer-group remove-private-as strips private AS from path ******************************************************************** Description =========== Test that ``remove-private-as`` configured on a peer-group strips private AS numbers from the AS-path. DUT1 (AS 65001) originates 192.168.100.0/24. DUT0 forwards to DUT2 (member of peer-group with remove-private-as). DUT2 should see only AS 100 in the path, without the private AS 65001. Scenario ======== .. include:: remove-private-as/testebgp-peer-groupremove-private-asstripsprivateasfrompath .. raw:: html