ZyXEL Communications ES-2024PWR Switch User Manual


 
Chapter 38 Mirror Commands
Ethernet Switch CLI Reference Guide
148
38.2 Command Examples
This example enables port mirroring and copies outgoing traffic from ports 1, 4, 5, and 6 to
port 3.
mirror dir
<ingress|egress|both>
Enables port mirroring for incoming (ingress), outgoing
(egress) or both incoming and outgoing (both) traffic.
C13
no mirror Disables port mirroring on the port(s). C 13
Table 88 mirror-filter Command Summary
COMMAND DESCRIPTION M P
mirror-filter egress mac <mac-
addr>
Copies outgoing frames with the specified source or
destination MAC address from mirrored ports to the monitor
port.
C13
mirror-filter egress type
<all|dest|src>
This command works with the previous command,
mirror-filter egress mac.
all: Specifies that the Switch should copy all outgoing traffic
from mirrored ports.
dest: Specifies that the Switch should copy all outgoing
traffic with the specified destination MAC address from
mirrored ports.
src: Specifies that the Switch should copy outgoing traffic
with the specified source MAC address from mirrored ports.
C13
mirror-filter ingress mac <mac-
addr>
Copies incoming frames matching with the specified source
or destination MAC address from mirrored ports to the
monitor port.
C13
mirror-filter ingress type
<all|dest|src>
This command works with the previous command,
mirror-filter ingress mac.
all: Specifies that the Switch should copy all outgoing traffic
from mirrored ports.
dest: Specifies that the Switch should copy all incoming
traffic with the specified destination MAC address from
mirrored ports.
src: Specifies that the Switch should copy all incoming traffic
with the specified source MAC address from mirrored ports.
C13
show mirror Displays mirror settings of the Switch. E 3
Table 87 mirror Command Summary (continued)
COMMAND DESCRIPTION M P
sysname(config)# mirror-port
sysname(config)# mirror-port 3
sysname(config)# interface port-channel 1,4-6
sysname(config-interface)# mirror
sysname(config-interface)# mirror dir egress