The apply redirect ipv6 command precisely redirects the traffic that matches a filtering rule carried in BGP Flow Specification static routes to a specified SRv6 TE Policy.
The undo apply redirect ipv6 command cancels the configuration.
By default, traffic is not redirected.
Parameter | Description | Value |
---|---|---|
redirectIPv6RT |
Specifies the IPv6 address of the next hop for redirection. |
The value is in the format of ipv6-address.0 or ipv6-address:1. ipv6-address is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. The value 0 indicates that traffic can be forwarded only through redirection. The value 1 indicates that the original forwarded traffic is not affected and traffic is copied and then redirected. Currently, traffic can be forwarded only through redirection regardless of whether the value is in the format of ipv4-address:0 or ipv4-address:1. |
color colorValue |
Specifies the color attribute for redirecting traffic to an SRv6 TE Policy. |
The value of the color attribute is in the format of color flag:4-byte user-defined number. For example, the value can be set to 0:100. Currently, the color flag value is fixed at 0, and the 4-byte user-defined number is an integer ranging from 0 to 4294967295. |
prefix-sid prefix-sid-value |
Specifies a prefix SID. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
Usage Scenario
In static Flow Specification scenarios, you can run the apply redirect ipv6 command to precisely redirect the traffic that matches a filtering rule carried in BGP Flow Specification static routes to a specified SRv6 TE Policy. Traffic can be redirected to an SRv6 TE Policy only if the created tunnel policy and the redirection next hop IPv6, color, and prefix SID attributes match the specified SRv6 TE Policy.
When you configure static BGP Flow Specification, ensure that the apply redirect ipv6 command and the redirect tunnelv6 tunnel-selector command are both run so that traffic can be redirected to a specified SRv6 TE Policy.Precautions
Currently, redirection does not support the copy function. The copy function means that the traffic that matches rules in a route is forwarded along both the original path and the redirection path.