The peer egress-engineering srv6 command enables the BGP Egress Peer Engineering (EPE) function.
The undo peer egress-engineering srv6 command disables BGP EPE.
The peer egress-engineering srv6 static-sid command configures the static non-compressed End.X SID (PSP) and End.X SID (no flavor) values.
The undo peer egress-engineering srv6 static-sid command deletes the configured static non-compressed End.X SID (PSP) and End.X SID (no flavor) values.
The peer egress-engineering srv6 static-sid compress command configures the static compressed End.X SID (PSP) and End.X SID (no flavor) values.
The undo peer egress-engineering srv6 static-sid compress command deletes the configured static compressed End.X SID (PSP) and End.X SID (no flavor) values.
By default, BGP EPE is disabled.
peer peerIpv6Addr egress-engineering srv6
peer peerIpv6Addr egress-engineering srv6 locator locator-name
peer peerIpv6Addr egress-engineering srv6 static-sid { psp psp-sid | no-flavor no-flavor-sid } *
peer peerIpv6Addr egress-engineering srv6 static-sid { psp compress psp-compress-sid | no-flavor compress no-flavor-compress-sid }
undo peer peerIpv6Addr egress-engineering srv6
undo peer peerIpv6Addr egress-engineering srv6 locator locator-name
undo peer peerIpv6Addr egress-engineering srv6 static-sid { psp psp-sid | no-flavor no-flavor-sid } *
undo peer peerIpv6Addr egress-engineering srv6 static-sid { psp compress psp-compress-sid | no-flavor compress no-flavor-compress-sid }
Parameter | Description | Value |
---|---|---|
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
locator locator-name |
Specifies the name of a SID node route locator. To configure the locator, run the locator command. |
The value is a string of 1 to 31 characters. |
static-sid |
Specifies a static SID. |
- |
psp psp-sid |
Specifies a static End.X SID (PSP). |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. The value range is the static SID range of the locator in the segment-routing ipv6 egress-engineering locator configuration. |
no-flavor no-flavor-sid |
Specifies the static End.X SID (no flavor). |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. The value range is the static SID range of the locator in the segment-routing ipv6 egress-engineering locator configuration. |
compress psp-compress-sid |
Specifies the value of the static compressed End.X SID (PSP). |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. The value range is the static compression SID range of the locator in the segment-routing ipv6 egress-engineering locator configuration. |
compress no-flavor-compress-sid |
Specifies the value of the static compressed End.X SID (no flavor). |
The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. The value range is the static compression SID range of the locator in the segment-routing ipv6 egress-engineering locator configuration. |
Usage Scenario
The Border Gateway Protocol (BGP) is a dynamic routing protocol used between autonomous systems (ASs). BGP EPE is an extension to BGP segment routing and is used to implement source routing between ASs.
BGP EPE can allocate BGP peer SIDs to inter-AS paths. The peer SIDs can be transmitted to the network controller through BGP LS extension. The controller orchestrates IGP SIDs and BGP peer SIDs to implement inter-AS forwarding over the optimal path. After the peer egress-engineering srv6 command is run, the local device can assign Peer Node Segments (Peer-Node SIDs) and Peer Adjacency Segments (Peer-Adj SIDs) to peers.A Peer-Node SID identifies a peer node.
A Peer-Adj SID identifies an adjacency to a peer.Precautions
BGP EPE takes effect only after BGP-LS is enabled using the link-state-family unicast command and SRv6 is enabled using the segment-routing ipv6 command.
If a locator is configured on a peer, the locator configured on the peer takes precedence over that configured on the local device. Otherwise, the global locator configuration is used. Locator and static SIDs cannot be configured on the same peer. If both locator and static SIDs are configured, the latest configuration overrides the previous one. The static SID uses the globally referenced locator, and the SID value must be globally unique.<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test ipv6-prefix 2001:db8:30:: 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 locator test
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test ipv6-prefix 2001:db8:30:: 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] segment-routing ipv6 egress-engineering locator test [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 static-sid psp 2001:db8:30::1 no-flavor 2001:db8:30::2
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test ipv6-prefix 2001:db8:40:: 64 compress block 40 compress-static 6 static 32 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] segment-routing ipv6 egress-engineering locator test [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 static-sid psp compress 2001:db8:40::100:0:0:0 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 static-sid no-flavor compress 2001:db8:40::200:0:0:0