The redirect ip-multihop command configures an action of redirecting packets to multiple next hop IP addresses in a traffic behavior.
The undo redirect command deletes the redirection configuration.
By default, an action of redirecting packets to multiple next hop IP 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 ] ip-multihop { nexthop ip-address } &<2-4>
redirect [ vpn-instance vpn-instance-name ] ip-multihop acl-ip-pool-name
Parameter |
Description |
Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
nexthop ip-address |
Specifies the IP address of the next hop. |
The value is in dotted decimal notation and in X.X.X.X format. |
acl-ip-pool-name |
Specifies the name of an ACL IP address pool. |
The ACL IP address pool name must exist. |
Usage Scenario
If multiple next hop IP addresses are specified, the device redirects packets through equal-cost routes in load balancing mode.
If the outbound interface corresponding to a next hop IP 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 multiple next hop IP addresses.
Precautions
In a traffic behavior, the redirect ip-multihop command cannot be used together with any of the following commands: remark 8021p, add-tag vlan-id, remark cvlan-id and remark vlan-id.
A traffic policy containing the redirection action can be only used globally, on an interface, or in a VLAN in the inbound direction.
Error: Redirect ip-multihop should configure at least two address.
If the device has no ARP entry matching the specified next hop IP address, the redirect ip-multihop command can be used but redirection does not take effect. The device still forwards packets to the original destination until the device has the corresponding ARP entry.
# Configure three next hop IP addresses in the traffic behavior b1: 10.1.42.1, 10.2.12.3, and 10.1.1.2.
<HUAWEI> system-view [HUAWEI] traffic behavior b1 [HUAWEI-behavior-b1] redirect ip-multihop nexthop 10.1.42.1 nexthop 10.2.12.3 nexthop 10.1.1.2
# In the traffic behavior b2, configure the action of redirecting packets to five next hop IP addresses in the ACL IP address pool abc.
<HUAWEI> system-view [HUAWEI] acl ip-pool abc [HUAWEI-acl-ip-pool-abc] ip address 192.168.10.1 32 [HUAWEI-acl-ip-pool-abc] ip address 192.168.20.1 32 [HUAWEI-acl-ip-pool-abc] ip address 192.168.30.1 32 [HUAWEI-acl-ip-pool-abc] ip address 192.168.40.1 32 [HUAWEI-acl-ip-pool-abc] ip address 192.168.50.1 32 [HUAWEI-acl-ip-pool-abc] quit [HUAWEI] traffic behavior b2 [HUAWEI-behavior-b2] redirect ip-multihop abc