peer peer-set

Function

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.

Format

peer ipv4-address peer-set name peer-set-name

undo peer ipv4-address peer-set name peer-set-name

Parameters

Parameter Description Value
ipv4-address

Specifies the IP address of a BGP peer.

The value is in dotted decimal notation.

name peer-set-name

Specifies the name of a BGP peer set.

The value is a string of 1 to 63 characters.

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

Example

# Add a specified BGP peer 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >