Monitoring and Analyzing Switch Operation

Traffic Mirroring

1. Determine the Mirroring Session and Destination

For a Local Mirroring Session. Determine the port number for the exit port (such as A5, B10, etc.), then go to “3. Configure the Monitored Traffic in a Mirror Session” on page B-35.

2. Configure a Mirroring Session on the Source Switch

To configure local mirroring, only a session number and exit port number are required. See “Configuring a Source Switch in a Local Mirroring Session” below for more information.

Configuring a Source Switch in a Local Mirroring Session. For a local mirroring session, enter the mirror port command on the source switch to configure an exit port on the same switch. To create the mirroring session, use the information gathered in “1. Determine the Mirroring Session and Destination” on page B-35.

Syntax: mirror eth-port

This command assigns the exit port to use for the specified mirroring session, and must be executed from the global configuration level.

The no form of the command removes the mirroring session and any mirroring source previously assigned to that session. To preserve the session while deleting a mirroring source assigned to it, refer to the no command descriptions under “3. Configure the Monitored Traffic in a Mirror Session” on page B-35.

C a u t i o n

Configuring a switch with the traffic selection criteria and destination for a

 

given mirroring session starts traffic mirroring to that destination.

 

 

3. Configure the Monitored Traffic in a Mirror Session

This step configures one or more interfaces on a source switch with the traffic- selection criteria to use to select the traffic to mirror in a specified session configured in Step 3.

B-35