The redirect ipv6-multihop command configures an action of redirecting packets to multiple next hop IPv6 addresses in a traffic behavior.
The undo redirect command deletes the redirection configuration.
By default, an action of redirecting packets to multiple next hop IPv6 addresses is not configured in a traffic behavior.
Product |
Support |
---|---|
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 |
Supported |
S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI |
Not supported |
redirect [ vpn-instance vpn-instance-name ] ipv6-multihop { ipv6-address | link-local link-local-address interface interface-type interface-number } & <2-4>
redirect [ vpn-instance vpn-instance-name ] ipv6-multihop acl6-ip-pool-name
undo redirect
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 X:X:X:X:X:X:X:X format. |
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 X:X:X:X:X:X:X:X format. |
interface interface-type interface-number |
Specifies the interface corresponding to the link-local address.
|
- |
acl6-ip-pool-name |
Specifies the name of the ACL IPv6 address pool to be created. |
The value is a string of 1 to 32 case-sensitive characters without spaces and starting with a letter. |
Usage Scenario
If multiple next hop IPv6 addresses are specified, the device redirects packets through equal-cost routes in load balancing mode.
If the outbound interface corresponding to a next hop IPv6 address becomes Down or a route changes, the device switches traffic to the outbound interface corresponding to an available next hop. If the specified next hops are unavailable, the device forwards the packets to the original destination.
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 multihop IPv6 addresses.
Precautions
In a traffic behavior, the redirect ipv6-multithop command cannot be used together with any of the following commands: remark 8021p, add-tag vlan-id, remark cvlan-id and remark vlan-id.
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.
The traffic policy that contains the redirection action can only be applied to the system, an interface, or a VLAN.
When running the redirect ipv6-multithop command to configure multiple next hop IPv6 addresses, you can specify 2 to 4 next hop IPv6 addresses. When configuring multiple next hop IPv6 addresses through an ACL IPv6-POOL, you can specify a maximum of 64 next hop IPv6 addresses. To create and configure an ACL IPv6-POOL, run the acl ipv6 ip-pool and ipv6 address (ACL IPv6-POOL view) commands.
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 you run the redirect ipv6-multithop command in the same traffic classifier view multiple times, only the latest configuration takes effect.
# Configure two next hop IPv6 addresses in the traffic behavior b1: FC00:0:0:2000::1 and FC00:0:0:3000::1.
<HUAWEI> system-view [HUAWEI] traffic behavior b1 [HUAWEI-behavior-b1] redirect ipv6-multihop fc00:0:0:2000::1 fc00:0:0:3000::1
# In the traffic behavior b2, configure an action of redirecting packets to five next hop IPv6 addresses in the ACL IPv6-POOL abc.
<HUAWEI> system-view [HUAWEI] acl ipv6 ip-pool abc [HUAWEI-acl6-ip-pool-abc] ipv6 address 2001:db8::1 128 [HUAWEI-acl6-ip-pool-abc] ipv6 address 2001:db8::2 128 [HUAWEI-acl6-ip-pool-abc] ipv6 address 2001:db8::3 128 [HUAWEI-acl6-ip-pool-abc] ipv6 address 2001:db8::4 128 [HUAWEI-acl6-ip-pool-abc] ipv6 address 2001:db8::5 128 [HUAWEI-acl6-ip-pool-abc] quit [HUAWEI] traffic behavior b2 [HUAWEI-behavior-b2] redirect ipv6-multihop abc