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

Page 183

Advertising
background image

AT-S63 Management Software Command Line Interface User’s Guide

Section I: Basic Operations

183

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. You can specify the ports
individually (for example, 5, 7, 22), as a range (for
example, 18-23), or both (for example, 1, 5, 14-22).

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

Examples

The following command specifies ports 16 and 17 as new source ports for
the port mirror. Only the ingress traffic is mirrored:

set switch port=16-17 mirror=rx

The following command removes ports 5, 7, and 10 as source ports of a
port mirror:

set switch port=5,7,10 mirror=none

Advertising