Configuring a mirroring policy to select inbound traffic

Syntax

class ipv4 | ipv6 classname [ no ] [seq-number] [ match | ignore ip-protocol source-address destination-address ] [precedence precedence-value] [tos tos-value] [ip-dscp codepoint] [vlan vlan-id]

Syntax

policy mirror policy-name [no] [seq-number] [ class ipv4 | ipv6 classname action mirror session ] [ action mirror session ...] [ no ] default-class action mirror session [ no ] [ interface port/trunk | vlan vid-# ]service-policy mirror-policy-name in

In the policy mirror command, the mirror session parameter accepts a number (1 to 4) or name, if the specified mirroring session has already been configured with the name name-str option in the mirror command.

The

no [ interface | vlan ] service-policy in

command removes the mirroring policy from a port, VLAN, trunk, or mesh interface for a specified session, but leaves the session available for other assignments.