segment-routing ipv6 locator (IS-IS view)

Function

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.

Format

segment-routing ipv6 locator locator-name [ auto-sid-disable ]

undo segment-routing ipv6 locator locator-name [ auto-sid-disable ]

Parameters

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).

-

Views

IS-IS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
isis write

Usage Guidelines

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:

  • segment-routing ipv6 locator locator-name: enables IS-IS SRv6 and dynamic SID allocation. SIDs must be allocated within the locator range.
  • segment-routing ipv6 locator locator-name auto-sid-disable: enables IS-IS SRv6 and disables dynamic SID allocation so that SIDs are statically allocated within the locator range.
  • undo segment-routing ipv6 locator locator-name [ auto-sid-disable ]: deletes all IS-IS-allocated dynamic and static SIDs within the specified locator range. In this case, auto-sid-disable is an optional parameter, and the configuration effect is the same regardless of whether this parameter is specified.

    During SRv6 SID allocation, if a static opcode is configured, the static opcode is preferentially used to form a static SID. If no static opcode is configured, a SID is dynamically allocated. The process of IS-IS SRv6 SID allocation is as follows:
  • Configure a locator in the SRv6 view, and run the segment-routing ipv6 locator command in the IS-IS process view to enable SRv6 and reference the locator. In an IS-IS process, each algorithm allows only one locator to be used to advertise End SIDs or End.X SIDs.
  • Configure IS-IS to allocate an End SID to each locator in the range of the dynamic segment based on locator configurations. Both PSP and non-PSP SIDs are allocated.
  • Configure IPv6 addresses for interfaces and enable IS-IS IPv6. IS-IS allocates End.X SIDs to the interfaces within the range of the dynamic segment based on locator configurations. Both PSP and non-PSP SIDs are allocated.

Prerequisites

Before you run the segment-routing ipv6 locator command, ensure that the following configurations have been performed:

  • IS-IS IPv6 has been enabled using the ipv6 enable command.
  • The IS-IS cost type has been set to wide using the cost-style wide command.

Precautions

After the undo segment-routing ipv6 locator command is configured, IS-IS does not support the assignment and advertisement of SRv6 SIDs.

Example

# Enable IS-IS to import static End and End.X SIDs from a specified locator.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >