The peer egress-engineering srv6 static-sid command configures the static non-compressed End.X SID (PSP, USP, or USD) value.
The undo peer egress-engineering srv6 static-sid command deletes the static non-compressed End.X SID (PSP, USP, or USD) value.
The peer egress-engineering srv6 static-sid compress command configures the static compressed End.X SID (PSP, USP, or USD) and End.X SID (PSP, USP, USD, or COC) value.
The undo peer egress-engineering srv6 static-sid compress command deletes the static compressed End.X SID (PSP, USP, or USD) and End.X SID (PSP, USP, USD, or COC) value.
By default, no static End.X SID is configured.
peer peerIpv6Addr egress-engineering srv6 static-sid psp-usp-usd psp-usp-usd-sid
peer peerIpv6Addr egress-engineering srv6 static-sid { psp-usp-usd compress psp-usp-usd-compress-sid | psp-usp-usd-coc compress psp-usp-usd-coc-compress-sid }
undo peer peerIpv6Addr egress-engineering srv6 static-sid psp-usp-usd psp-usp-usd-sid
undo peer peerIpv6Addr egress-engineering srv6 static-sid { psp-usp-usd compress psp-usp-usd-compress-sid | psp-usp-usd-coc compress psp-usp-usd-coc-compress-sid }
Parameter | Description | Value |
---|---|---|
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
psp-usp-usd psp-usp-usd-sid |
Specifies a static End.X SID (PSP, USP, USD). |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value range is equal to the static SID range used with the locator specified in the segment-routing ipv6 egress-engineering locator command. |
compress psp-usp-usd-compress-sid |
Specifies a static compressed End.X SID (PSP, USP, USD). |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value range is equal to the static SID range used with the locator specified in the segment-routing ipv6 egress-engineering locator command. |
compress psp-usp-usd-coc-compress-sid |
Specifies a static compressed End.X SID (PSP, USP, USD, COC). |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value range is equal to the static SID range used with the locator specified in the segment-routing ipv6 egress-engineering locator command. |
psp-usp-usd-coc |
Specifies an End.X SID (PSP, USP, USD, COC). |
- |
Usage Scenario
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 static-sid 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 peer is configured with a locator, the peer locator takes precedence. Otherwise, the global locator configuration is used. A locator and a static SID cannot both be specified. If both of them are configured, the latter 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 compress ipv6-prefix 2001:db8:88:: 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 compress [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 200 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 static-sid psp-usp-usd 2001:db8:88::9 [*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6 static-sid psp-usp-usd-coc compress 2001:db8:88::100:0:0:0