The redirect ipv6-nexthop command configures an action of redirecting packets to a next hop IPv6 address in a traffic behavior.
The undo redirect command deletes the redirection configuration.
By default, an action of redirecting packets to a next hop IPv6 address is not configured in a traffic behavior.
redirect [ vpn-instance vpn-instance-name ] ipv6-nexthop { ipv6-address | link-local link-local-address interface interface-type interface-number } & <1-4> [ forced ]
undo redirect
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support vpn-instance vpn-instance-name parameter.
Parameter |
Description |
Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
ipv6-address |
Specifies a next hop IPv6 address. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
link-local link-local-address |
Specifies a link-local address. The prefix of the specified IPv6 address must match FE80::/60. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
interface interface-type interface-number |
Specifies the interface corresponding to the link-local address.
|
- |
forced |
Indicates that packets are discarded if the next hop is unavailable. |
- |
Usage Scenario
You can configure redirection in a traffic behavior to implement PBR.
Follow-up Procedure
Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to a next hop IPv6 address.
Precautions
In a traffic behavior, the redirect ipv6-nexthop command cannot be used together with any of the following commands: remark 8021p, add-tag vlan-id, remark cvlan-id and remark vlan-id.
If the device does not match the neighbor entry corresponding to the next hop IPv6 address, the device sends NS packets to check whether the neighbor is reachable. If the neighbor is unreachable, packets are forwarded based on the original path and redirection does not take effect.
If multiple next hop IPv6 addresses are configured, the device redirects packets in active/standby mode. A maximum of four next hop IPv6 addresses can be configured in a traffic behavior. The device determines the primary path and backup paths according to the sequence in which next hop IPv6 addresses were configured. The next hop IPv6 address that was configured first has the highest priority and this next hop is used as the primary path. Other next hops are used as backup paths. When the primary link becomes Down, a next hop with higher priority is used as the primary link.
When the next hop IPv6 address is a local-link address, you must configure a VLANIF interface. The address is only valid in the VLAN corresponding to the VLANIF interface.
If you run the redirect ipv6-nexthop command in the same traffic classifier view multiple times, only the latest configuration takes effect.