The peer peer-set command adds a specified BGP peer to a peer set.
The undo peer peer-set command deletes a specified BGP peer from a peer set.
By default, a BGP peer is not added to any peer set.
Usage Scenario
Border Gateway Protocol (BGP) is a dynamic routing protocol used between ASs. BGP egress peer engineering (EPE) is an extension of BGP for segment routing and is used to implement source routing between ASs.
BGP EPE can allocate BGP peer SIDs to inter-AS paths, and the peer SIDs can then be advertised to a network controller through extended BGP LS functions. The controller orchestrates IGP SIDs and BGP peer SIDs to implement inter-AS forwarding over the optimal path. You can manually plan a group of peers as a peer set and allocate a SID to the group. This SID can correspond to multiple outbound interfaces. After you run the peer peer-set command, the specified peer is added to a peer set.<HUAWEI> system-view [~HUAWEI] segment-routing [*HUAWEI-segment-routing] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering [*HUAWEI-bgp] egress-engineering peer-set group1 [*HUAWEI-bgp] peer 10.1.1.1 peer-set name group1