apply policy

Syntax

apply policyrouted-in no apply policyrouted-in

描述

Applies a classifier policy containing a PBR action to an interface. A policy with PBR actions is only applicable to L3/routing interfaces.

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

Command context

config-if

Parameters

Specifies name of the policy.

权威

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.

Example

Apply policy to an interface:

switch(config)#interface 1/1/10switch(config-if)#routingswitch(config-if)#pb应用政策r_policy routed-inswitch(config-if)#exit