Monitoring and Analyzing Switch Operation

Traffic Mirroring

Context: Class configurationSyntax: [no] [seq-number] < match ignore > < ip-protocol>

<source-address > < destination-address > [ ip-dscpcodepoint ] [ precedence precedence-value ] [ tos tos-value ] [ vlan vlan-id ]

For detailed information about how to enter match and ignore commands to configure a traffic class, refer to the “Creating a Traffic Class” section in the “Classifier-Based Software Configuration” in the Advanced Traffic Management Guide.

3.Create a mirroring policy to configure the session and destination device to which specified classes of inbound traffic are sent by entering the policy mirror command from the global configuration context.

 

Context:

Global configuration

 

Syntax:

[no] policy mirror <policy-name>

 

 

Defines the name of a mirroring policy and enters the policy

 

 

configuration context.

 

A traffic policy consists of one or more classes, and one or more mirroring

 

actions configured for each class of traffic. The configured actions are

 

executed on packets that match a match statement in a class. No policy

 

action is performed on packets that match an ignore statement.

 

 

N o t e

Be sure to enter each class and its associated mirroring actions in the

 

precise order in which you want packets to be checked and processed.

 

To configure the mirroring actions that you want to execute on packets

 

 

that match the criteria in a specified class, enter one or more class action

 

mirror commands from the policy configuration context:

 

Context:

Policy configuration

 

Syntax:

[no] [seq-number] class < ipv4 ipv6 > <classname >

 

 

action mirror <session >

Defines the mirroring action to be applied on a pre- configured IPv4 or IPv6 traffic class when a packet matches the match criteria in the traffic class. You can enter multiple class action mirror statements in a policy.

You can configure only one mirroring session (destination) for each class. You can configure the same mirroring session for different classes.

B-69