redirect srv6-te policy

Function

The redirect srv6-te policy command enables the function of redirecting IPv4/IPv6 packets to an SRv6 TE Policy.

The undo redirect srv6-te command disables the function of redirecting IPv4/IPv6 packets to an SRv6 TE Policy.

By default, the function of redirecting IPv4/IPv6 packets to an SRv6 TE Policy is not enabled.

Format

redirect srv6-te policy endpoint color [ { sid | vpnsid } sid-ip ]

undo redirect srv6-te

Parameters

Parameter Description Value
endpoint

Specifies the IP address of an end point.

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

color

Specifies a color.

The value is an integer that ranges from 0 to 4294967295.

sid

Specifies public network SID.

-

vpnsid

Specifies private network SID.

-

sid-ip

Specifies an SID IPv6 address.

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

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To prevent specific traffic from being forwarded through specific routes and enable such traffic to be redirected to a specific SRv6 TE Policy and forwarded based on the endpoint, color, and SID, run the redirect srv6-te policy command.

Precautions

One traffic behavior supports only one redirect action. Before running the redirect command, delete the existing redirect configuration.

The function of redirecting public-network IPv4/IPv6 packets to an SRv6 TE Policy applies only to inbound interfaces.

Example

# Configure the function of redirecting public-network IPv4 packets to an SRv6 TE Policy in traffic behavior b1, with the SID IP being a private-network IP address.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect srv6-te policy 1::1 20 vpnsid 2::2
# Configure the function of redirecting public-network IPv4 packets to an SRv6 TE Policy in traffic behavior b1, with the SID IP being a public-network IP address.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect srv6-te policy 3::3 33 sid 4::4
# Configure the function of redirecting public-network IPv4 packets to an SRv6 TE Policy in traffic behavior b1 without configuring the SID IP type.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect srv6-te policy 1::1 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >