cache source-address

Function

The cache source-address command configures the source IPv6 address to be encapsulated after packets are sent from an SF to an SFF.

The undo cache source-address command deletes the configuration of the source IPv6 address.

By default, the source IPv6 address to be encapsulated after packets are sent from an SF to an SFF is not configured.

Format

cache source-address ipv6-address

undo cache source-address [ ipv6-address ]

Parameters

Parameter Description Value
ipv6-address

Specifies the source IPv6 address to be encapsulated after packets are sent from an SF to an SFF.

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

Views

SRv6 locator End-AS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

This command is used to configure the source IPv6 address to be encapsulated after packets are sent from an SF to an SFF.

Precautions

There may be multiple SFCs. Currently, only one of them can be configured.

Example

# Set the source IPv6 address to be encapsulated after packets are sent from an SF to an SFF to 2001:DB8:1:2::3:4.
<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] opcode ::12 end-as
[*HUAWEI-segment-routing-ipv6-locator-endas-::12] cache source-address 2001:DB8:1:2::3:4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >