The index sid ipv6 command specifies a next-hop SID. Different SIDs are organized by index in ascending order to form a SID stack. In addition, you can specify the length of the compression Block field and whether to perform path verification on the SID.
The undo index sid ipv6 command deletes a SID from a SID stack.
By default, no SID stack is configured for the segment list.
index index sid ipv6 ipv6address [ compress block block-value ]
index index sid ipv6 ipv6address [ compress block block-value ] verification
undo index index [ sid ipv6 ipv6address [ compress block block-value ] ]
undo index index sid ipv6 ipv6address [ compress block block-value ] verification
Parameter | Description | Value |
---|---|---|
index |
Specifies an index. |
The value is an integer that ranges from 0 to 4294967295. |
ipv6address |
Specifies the SRv6 SID. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
compress |
Specifies the compressed SID of an SRv6 TE Policy. |
- |
block block-value |
Specifies the length of a block. |
The value is an enumerated type, which is 4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88. |
verification |
Indicates SID check. |
- |
Usage Scenario
This command is used to plan the path of an SRv6 TE Policy. You can run the command multiple times. The system generates a stack of SIDs that are organized by index in ascending order. If a candidate path in the SRv6 TE Policy is preferentially selected, traffic is forwarded using the SID stack of the candidate path.
The verification parameter is used to identify whether path check is performed on a SID. If the verification parameter is not specified, path check is not performed on the SID. The verification parameter should not be specified for the SIDs or binding SIDs not in this domain.<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] segment-list abc [*HUAWEI-segment-routing-ipv6-segment-list-abc] index 1 sid ipv6 2001:DB8:100:: compress block 4 verification [*HUAWEI-segment-routing-ipv6-segment-list-abc] index 2 sid ipv6 2001:DB8:200::