Znyx Networks bh5700 Manual Do Utilizador
zmirror
NAME
zmirror - Set packet mirroring on an ingress or egress port
SYNOPSIS
zmirror -a | -t
zmirror [-e] <from_list> <to_port>
DESCRIPTION
zmirror sets packet mirroring from a given set of ports to one given port. Turning on packet
mirroring causes a copy of the packet to be sent to the to port. Any number of from ports can be
mirrored to one to ports.
mirroring causes a copy of the packet to be sent to the to port. Any number of from ports can be
mirrored to one to ports.
NOTE: There are performance issues when trying to mirror more bandwidth than is
available on the to port.
available on the to port.
After executing the following command, packets received on ports 1, 2 and 3 would be mirrored
(copied and transmitted) to port 12. This mirroring would be in addition to any Layer 3 or Layer
2 switching.
(copied and transmitted) to port 12. This mirroring would be in addition to any Layer 3 or Layer
2 switching.
zmirror zre1, zre2, zre3 zre12
To clear the current mirroring, use the -t option.
The -e option can be used to indicate that packets being sent on a given port should be copied to
the to port. For example if the -e option is used as follows, the packets transmitted, as opposed
to received, on ports 1, 2 or 3 would be mirrored to port 12.
the to port. For example if the -e option is used as follows, the packets transmitted, as opposed
to received, on ports 1, 2 or 3 would be mirrored to port 12.
zmirror -e zre1, zre2, zre3 zre12
The to port can also be the keyword
cpu to indicate that packets should be forwarded to the on-
board processor. The following example would mirror the contents of port 1, 2 or 3 to the on-
board processor:
board processor:
zmirror zre1, zre2, zre3 cpu
The to port can be a single port or the keyword
cpu. The from port can be a list consisting of one
or more ports. The from port cannot be the
cpu. See the section on wildcards for discussion of
from port lists.
zmirror is cumulative:
Ethernet Switch Blade User's Guide
release 3.2.2j
page 311