.. _example_protocols_bgp_peer-group_attribute-unchanged: ################### Attribute-Unchanged ################### .. sidebar:: Contents .. contents:: :depth: 2 :local: Scenario to verify BGP **peer-group attribute-unchanged** inheritance. This command prevents the router from modifying specific BGP attributes when advertising routes to neighbors that are members of the peer-group. By default, when advertising to an eBGP peer, the router changes the next-hop to its own address, prepends its AS number to the AS-path, and may modify the MED value. The ``attribute-unchanged`` command allows preserving these attributes in their original form. The **as-path** option prevents the router from prepending its local AS to the path. The **med** option preserves the Multi-Exit Discriminator value without modification. The **next-hop** option keeps the original next-hop address instead of replacing it with the advertising router's address. .. image:: attribute-unchanged.svg :width: 400 ****************************************** Test eBGP - Peer-group attribute-unchanged ****************************************** Description =========== Test ``attribute-unchanged`` options (as-path, next-hop, med) on a peer-group. Baseline shows default re-advertisement behavior; each option preserves the corresponding attribute. Scenario ======== .. include:: attribute-unchanged/testebgp-peer-groupattribute-unchanged .. raw:: html