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. A policy with PBR actions is only applicable to L3/routing interfaces.

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 or local user group members with execution rights for this command.

Restrictions

  • Only Layer 3 interfaces 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'.

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