apply policy

Syntax

apply policy <POLICY-NAME> routed-in

no apply policy <POLICY-NAME> routed-in

Description

Applies a classifier policy containing a PBR action to an interface.

The no form of this command removes a classifier policy containing a PBR action from an interface.

Command context

config-if

Parameters

<POLICY-NAME>

Specifies name of the policy.

Authority

Administrators

Restrictions

  • Only Layer 3 interfaces such as Route-only ports (ROP), LAGs, or VLAN interfaces (VSI) are valid for PBR policy application, and only in the routed inbound direction.

  • If a policy with an 'interface tunnel' PBR action is applied on a Layer 3 interface in VRF 'A', and that interface tunnel is a member of VRF 'B', the interface tunnel is considered down/unavailable in this policy application in VRF 'A'.

Usage

A policy with PBR actions is only applicable to L3/routing interfaces. Change the routing mode of the interface before applying the policy if necessary.

Example

Apply policy to an interface:

switch(config)# interface 1/1/10
switch(config-if)# routing
switch(config-if)# apply policy pbr_policy routed-in
switch(config-if)# exit