The segment-routing ipv6 locator command enables the IS-IS SRv6 function.
The undo segment-routing ipv6 locator command disables the IS-IS SRv6 function.
By default, the IS-IS SRv6 function is disabled.
Parameter | Description | Value |
---|---|---|
locator-name |
Specifies the name of a SID node route locator, which was configured through the locator command. After you configure the locator-name parameter, IS-IS allows static End and End.X SIDs to be imported from the configured locator-name. |
The value is a string of 1 to 31 case-sensitive characters. When double quotation marks are used around the string, spaces are allowed in the string. |
auto-sid-disable |
Disables dynamic allocation of End SIDs and End.X SIDs. If auto-sid-disable is specified, dynamic allocation of End SIDs and End.X SIDs is disabled, and static End and End.X SIDs are imported from the specified locator. If auto-sid-disable is not specified, dynamic allocation of End SIDs and End.X SIDs is supported. If static End and End.X SIDs exist, use the static SIDs. If no static SID exists, use the dynamically allocated End and End.X SIDs. If the auto-sid-disable parameter is configured for two or more locators, neither dynamic nor static SIDs of the locators can be configured or advertised. The locators can only be used as routing features of other protocols (such as VPN). |
- |
Usage Scenario
In an SRv6 scenario, after SRv6 is enabled for IS-IS, End and End.X SIDs are preferentially generated based on the specified locator. Each SRv6 SID generated by IS-IS is added to the local SID table on the device and also advertised through IS-IS LSPs.<br /> Different parameter combinations in this command have different functions. The details are as follows:
Prerequisites
Before you run the segment-routing ipv6 locator command, ensure that the following configurations have been performed:
Precautions
After the undo segment-routing ipv6 locator command is configured, IS-IS does not support the assignment and advertisement of SRv6 SIDs.
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] isis 1 [*HUAWEI-isis-1] ipv6 enable [*HUAWEI-isis-1] cost-style wide [*HUAWEI-isis-1] segment-routing ipv6 locator test1 auto-sid-disable