beautypg.com

2 command examples – ZyXEL Communications ZyXEL Dimension ES-2024PWR User Manual

Page 148

background image

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

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 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.

C

13

mirror-filter egress type

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

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 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