apply output-interface

Function

The apply output-interface command configures an outbound interface to which packets are redirected.

The undo apply output-interface command cancels the configuration.

By default, no outbound interface is configured for packet redirection.

Format

apply output-interface { interface-name | interface-type interface-number }

undo apply output-interface [ interface-name | interface-type interface-number ]

Parameters

Parameter Description Value
interface-type

Specifies the type of an interface.

The value can only be tunnel.

interface-number

Specifies the number of an interface.

The format of tunnel-name can be either of the following:

  • Tunnel interface-number. The format of interface-number is x/y/z.
  • Tunnel tunnel-number. The value of tunnel-number is an integer ranging from 0 to 4294967295.

Views

VS PBR policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cli execute

Usage Guidelines

Usage Scenario

PBR is deployed in the scenario where users want specific traffic to be forwarded to a desired next hop. Each node in each traffic policy for PBR is configured with rules and an action. The action is redirecting matching IP packets to an outbound interface.

Precautions

The outbound interface can only be a P2P TE Tunnel interface. If the tunnel type is changed , the configuration is deleted automatically for the PBR.

Example

# Configure Tunnel 10 as the outbound interface to which matching IP packets are redirected.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI] interface tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol mpls te
[*HUAWEI-Tunnel10] quit
[*HUAWEI] policy-based-route policy1 permit node 10 map-instance 10
[*HUAWEI-policy-based-route-policy1-10] apply output-interface Tunnel10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >