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.
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. |
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.<HUAWEI> system-view [~HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] redirect srv6-te policy 1::1 20 vpnsid 2::2
<HUAWEI> system-view [~HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] redirect srv6-te policy 3::3 33 sid 4::4
<HUAWEI> system-view [~HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] redirect srv6-te policy 1::1 20