Remote mirroring overview
To configure a remote mirroring session in which the mirroring source and destination are on different switches, follow these general steps:
After you complete 5.b, the switch begins mirroring traffic to the remote destination (endpoint) configured for the session.
- Determine the IP addressing, UDP port number, and destination (exit) port number for the remote session:
Source VLAN or subnet IP address on the source switch.
Destination VLAN or subnet IP address on the destination switch.
Random UDP port number for the session (7933-65535.)
Remote mirroring endpoint: Exit port and IP address of the remote destination switch (In a remote mirroring endpoint, the IP address of the exit port and remote switch can belong to different VLANs. Any loopback IP address can be used except the default loopback address 127.0.0.1.)
Requirement: For remote mirroring, the same IP addressing and UDP port number must be configured on both the source and destination switches.
On the remote destination (endpoint) switch, enter the
mirror endpoint
command with the information from 1 to configure a mirroring session for a specific exit port.Determine the session (1 to 4) and (optional) alphanumeric name to use on the source switch.
- Determine the traffic to be filtered by any of the following selection methods and the appropriate configuration level (VLAN, port, mesh, trunk, global):
Direction: inbound, outbound, or both.
Classifier-based mirroring policy: inbound only for IPv4 or IPv6 traffic.
MAC source and/or destination address: inbound, outbound, or both.
- On the source switch:
Enter the
mirror
command with the session number (1 to 4) and the IP addresses and UDP port number from 1 to configure a mirroring session. If desired, enter the[truncation]
parameter to allow oversize packets to be truncated rather than dropped.- Enter one of the following commands to configure one or more of the traffic-selection methods in 4 for the configured session:
interface port/trunk/mesh [monitor | service-policy policy-name in] vlan vid [monitor | service-policy policy-name in] monitor mac mac-addr
After you complete 5b, the switch begins mirroring traffic to the remote destination (endpoint) configured for the session.