Set switch port mirror – Allied Telesis AT-S63 User Manual

Page 156

Advertising
background image

Chapter 10: Port Mirroring Commands

156

Section I: Basic Operations

SET SWITCH PORT MIRROR

Syntax

set switch port=

port

mirror=none|rx|tx|both

Parameters

port

Specifies the source port of a port mirror. You can

specify more than one port. Port numbers are specified
in the following format:

module ID.port number

For instructions, refer to “Port Numbers in Commands”
on page 40.

mirror

Specifies which traffic on the source ports is to be
mirrored to the destination port. The options are:

rx

Specifies ingress mirroring.

tx

Specifies egress mirroring.

both

Specifies both ingress and egress mirroring.

none

Removes a port as a source port.

Description

This command specifies the source ports of a port mirror. If the port mirror
already has source ports, the new source ports are added to the existing
ports. You can also use the command to remove source ports.

You must set the destination port before you can select the source ports.
To set the destination port, refer to “SET SWITCH MIRROR” on page 155.

Examples

This command specifies ports 1.16 and 1.17 as source ports of the port
mirror. The ingress traffic on the ports is copied to the destination port:

set switch port=1.16-1.17 mirror=rx

This command removes ports 2.5, 2.7, and 5.10 as source ports of a port
mirror:

set switch port=2.5,2.7,5.10 mirror=none

Advertising