Znyx Networks bh5700 Switch User Manual


 
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 a 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.
NOTE: There may be a significant performance impact when trying to mirror more
bandwidth than is 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.
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.
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:
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.
Ethernet Switch Blade User's Guide release 3.2.2j page 231