Configuring Mirroring
-
To create a named mirror instance, use the following
command:
create mirror mirror_name {to
[port
port | port-list
port_list
loopback-port
port] { remote-tag
rtag } | remote-ip
remote_ip_address {{ vr } {vr_name } {from [ source_ip_address | auto-source-ip]}{ping-check [on | off]} priority
priority_value
]} {description
mirror-desc}
-
If you want to configure mirroring on multiple ports, and
did not configure this with the above create command, use the following
command:
configure mirror mirror_name {to [port
port | port-list
port_list | loopback port
port] | remote-ip
remote_ip_address {{vr} vr_name } {from [source_ip_address | auto-source-ip]} {ping-check [on | off]}]
{remote-tag
rtag | port
none}
The port-list is a list of monitor ports that transmit
identical copies of mirrored packets. The loopback-port is an unused port that is
required when you mirror to a port-list. The loopback-port is not available for
switching user data traffic. Certain L2 control protocol packets, such as
STP (Spanning Tree Protocol),
LACP, and LLDP (Link Layer Discovery Protocol), cannot be mirrored with one-to-many
mirroring. The remote IP address option
allows you enable hardware mirroring of Ethernet frames to a specified remote IPv4
address, which can reside zero or more router hops away.
-
Mirroring is disabled by default. To enable mirroring, use
one of the following commands:
- enable mirror mirror_name
- enable mirror to [port
port | port-list
port_list
loopback-port
port] {remote-tag
tag}
- enable mirror {mirror_name} to remote-ip
remote_ip_address {{vr} vr_name} {from [source_ip_address | auto-source-ip]} {ping-check [on | off]}]
-
To disable mirroring, use the following command:
disable mirror mirror_name | all

Note
When you change the mirroring configuration,
the switch stops sending egress packets from the monitor port until the change is
complete. The ingress mirroring traffic to the monitor port and regular traffic are not
affected.