Monitoring and Analyzing Switch Operation

Traffic Mirroring

Mirroring Configuration ExamplesLocal Mirroring Using Traffic-Direction Criteria

Example of Local Mirroring Configuration. 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 configured. In this case, the command sequence is:

1.Configure the local mirroring session.

2.Assign a mirroring source to the session.

X

Y

A5

Switch

 

Traffic

 

C24

Analyzer

 

 

B17

Figure B-24. Example of a Local Mirroring Topology

 

 

 

 

 

 

 

 

 

 

 

 

Configures port C24 as the mirroring

 

ProCurve(config)# mirror eth-port

 

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-25. Example of Configuring Local Mirroring of All Inbound and Outbound Traffic

B-41