opcode end-m mirror-locator

Function

The opcode end-m mirror-locator command configures an opcode for static SRv6 SIDs.

The undo opcode end-m mirror-locator command deletes the opcode configured for static SRv6 SIDs.

By default, no opcode is configured for static SRv6 SIDs.

Format

opcode func-opcode end-m mirror-locator ipv6-address mask-length

undo opcode func-opcode end-m [ mirror-locator ipv6-address mask-length ]

Parameters

Parameter Description Value
func-opcode

Specifies an opcode for static SRv6 SIDs.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

ipv6-address

Specifies an IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

mask-length

Specifies an IPv6 address mask.

The value is an integer ranging from 32 to 120.

Views

Segment routing IPv6 locator view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

Services that recurse to an SRv6 TE Policy must be strictly forwarded through the path defined using the segment lists in the SRv6 TE Policy, and the endpoint of the SRv6 TE Policy is fixed. In this case, if a single point of failure occurs on the endpoint, service forwarding may fail. To prevent this problem, configure egress protection for the SRv6 TE Policy.

In SRv6 egress protection scenarios, you need to run this command to configure an End.M SID on this node to protect the locator of another node.

Precautions

  1. To ensure correct forwarding, configured static SIDs cannot conflict with IPv6 addresses configured on interfaces.
  2. Egress protection does not support CE multi-homing.
  3. Single-homing and multi-homing services require different locators. Egress protection cannot be deployed for locators used for single-homing services.

Example

# Configure an opcode for static SRv6 SIDs.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:db8:11:: 64 static 32
[*HUAWEI-segment-routing-ipv6-locator] opcode ::900 end-m mirror-locator 2001:db8:10:: 64
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >