The redirect to interface command configures an outbound interface for redirection.
The undo redirect to interface command deletes the configuration of redirecting traffic to an outbound interface.
By default, no outbound interface is configured for redirection in the traffic behavior view.
Parameter | Description | Value |
---|---|---|
interface-type |
Specifies the type of an interface. |
- |
interface-number |
Specifies the number of an interface. |
- |
route-forward |
Indicates that packets are forwarded based on the normal process if all next hop interfaces configured in a discard PBR policy are Down. |
- |
Usage Scenario
Redirection is deployed in the scenario where users need to forward specific traffic to a desired next hop outbound interface instead of forwarding the traffic through a normal path. The outbound interface can be a GE interface, GE sub-interface, Eth-trunk main interface or sub-interface, VLANIF interface, BDIF interface. The redirect to interface command applies only to the directly-connected traffic forwarding scenario, that is, the scenario where a direct route is available on the outbound interface for redirection to reach the destination IP address of packets.
Precautions
A traffic behavior can have only one redirect configuration. Before configuring a new redirect configuration, delete the existing redirect configuration.
Redirecting traffic to an outbound interface takes effect only on an upstream interface.