Monitoring and Analyzing Switch Operation

Traffic Mirroring

as described in “2. Configure a Mirroring Destination on a Remote Switch” on page B-50,before using the mirror remote ip command in this section to configure the mirroring source for the same session.

Syntax: [no] mirror < 1 - 4 > [name < name-str>] remote ip < src-ip><src-udp-port > < dst-ip >

This command is used on the source switch to uniquely associate the mirrored traffic in the specified session with a remote destination switch. You must configure the same source and destination parameters when you configure the same session on both the source and destination switches. (If multiple remote sessions use the same source and destination IP addresses, each session must use a unique UDP port value.)

When you execute this command, the following message is displayed:

Caution: Please configure destination switch first. Do you want to continue [y/n]?

If you have not yet configured the session on the remote destination switch, follow the configuration procedure in Step 2 on page B-50before using this command.

If you have already configured the session on the remote destination switch, type y (for “yes”) to complete this command.

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

<1 - 4 >: Identifies the mirroring session created by this command.

name < name-str >: Optional alphanumeric name string used as an additional session identifier (up to 15 characters in length).

<src-ip >: The IP address of the VLAN or subnet on which the traffic to be mirrored enters or leaves the switch.

B-54