.. _example_protocols_bgp_neighbor_peer-group: ########## Peer-Group ########## Test BGP **neighbor peer-group** functionality. A peer-group is a template that allows defining common BGP configuration parameters in one place, which can then be inherited by multiple neighbors. This simplifies configuration management and ensures consistency across similar peers. When a neighbor is assigned to a peer-group, it inherits settings like soft-reconfiguration, route-maps, and other options configured on the group. Note that the neighbor still requires remote-as to be configured directly in addition to the peer-group assignment. Peer-groups are particularly useful when managing large numbers of similar BGP peers, such as route reflector clients or customers with identical policies. *************************************** Test iBGP - Neighbor without peer-group *************************************** Description =========== Baseline test showing standard neighbor configuration without using a peer-group. DUT0 configures the neighbor with remote-as directly. The session establishes and routes are exchanged normally. Note that soft-reconfiguration is NOT enabled. Scenario ======== .. include:: peer-group/testibgp-neighborwithoutpeer-group .. raw:: html
****************************************************** Test iBGP - Neighbor inherits settings from peer-group ****************************************************** Description =========== Test BGP neighbor peer-group assignment. DUT0 defines a peer-group called INTERNAL with soft-reconfiguration inbound configured. The neighbor is assigned to this peer-group and inherits the soft-reconfiguration setting. This demonstrates how peer-groups allow centralizing common settings that are then inherited by all members. Scenario ======== .. include:: peer-group/testibgp-neighborinheritssettingsfrompeer-group .. raw:: html