Monitoring and Analyzing Switch Operation

Traffic Mirroring

Mirroring Configuration ExamplesExample: Local Mirroring Using Traffic-Direction Criteria

An administrator wants to mirror the inbound traffic from workstation “X” on port A5 and workstation “Y” on port B17 to a traffic analyzer connected to port C24. In this case, the administrator chooses “1” as the session number. (Any unused session number from 1 to 4 is valid.) Since the switch provides both the source and destination for the traffic to monitor, local mirroring can be used. In this case, the command sequence is:

1.Configure the local mirroring session, including the exit port.2.Configure the monitored source interfaces for the session.

X

Y

A5

Switch

 

Traffic

 

C24

Analyzer

 

 

B17

Figure B-48. Local Mirroring Topology

 

 

 

 

 

 

 

 

 

 

 

 

Configures port C24 as the mirroring

 

ProCurve(config)# mirror 1 port c24

 

destination (exit port) for session 1.

 

 

 

 

 

 

 

Caution: Please configure destination switch first.

 

 

Do you want to continue [y/n]? y

 

 

 

ProCurve(config)# interface a5,b17 monitor all in mirror 1

 

 

 

 

 

 

 

 

Reminder to configure mirroring

 

 

Mirrors all inbound and outbound traffic on ports A5

 

 

destination before configuring

 

 

and B17 to the mirroring destination configured for

 

 

source.

 

 

session 1.

 

 

 

 

 

 

 

 

Figure B-49. Configuring a Local Mirroring Session for All Inbound and Outbound Port Traffic

B-87