Chapter 44 Mirror Commands
Ethernet Switch CLI Reference Guide
192
44.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.
C
13
no mirror
Disables port mirroring on the port(s).
C
13
Table 110
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.
C
13
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.
C
13
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.
C
13
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.
C
13
show mirror
Displays mirror settings of the Switch.
E
3
Table 109
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