beautypg.com

Chapter 51 commands for mirroring configuration, 1 monitor session source interface, 2 monitor session source interface access-list – PLANET XGS3-24040 User Manual

Page 801: Monitor session source interface, Monitor session source interface access, List

background image

51-1

Chapter 51 Commands for Mirroring

Configuration

51.1 monitor session source interface

Command: monitor session source {interface | cpu [slot ]}

{rx| tx| both}

no monitor session source {interface | cpu [slot

]}

Function: Specify the source interface for the mirror. The no form command will disable this

configuration.

Parameters: <session> is the session number for the mirror. Currently only 1 to 4 is supported.

<interface-list> is the list of source interfaces of the mirror which can be separated by “-“and “;”. cpu slot

specifies the CPU on the specified board to be the source of the mirror for debugging.

Datagram received by or/and sent by the specified CPU. Currently the CPU mirror is only supported be

configured in session 4. rx means to filter the datagram received by the interface, while tx for the

datagram sent out, and both means both of income and outcome datagram.

Command mode: Global mode

Usage Guide: This command is used to configure the source interfaces for the mirror. It is not restricted

the source interface of the mirror on the switch. The source can be one interface, or can be multiple

interfaces. Both of the income and outcome datagram can be mirrored, or they can be mirrored

selectively. If no [rx | tx | both] is specified, both are made to be the default. When multiple interfaces are

mirrored, the direction of the mirror can be different, but they should be configured separately.

Example: Configure to mirror the datagram sent out by interface 1/1-4, and to mirror the datagram

received by interface 1/5.

Switch(config)#monitor session 1 source interface ethernet 1/1-4 rx

Switch(config)#monitor session 1 source interface ethernet 1/5 rx

51.2 monitor session source interface access-list

Command: monitor session source {interface } access-list {rx |

tx | both}

no monitor session source {interface } access-list

Function: Specify the access control for the source of the mirror. The no form command will disable this

configuration.

Parameters: <session> is the session number for the mirror. Currently only 1 to 4 is supported.

<interface-list> is the list of source interfaces of the mirror which can be separated by “-“ and “;”. <num>

is the number of the access list. rx means to filter the datagram received by the interface. tx for the

datagram sent out, and both means both of income and outcome datagram.

Command Mode: Global Mode.

Usage Guide: This command is used to configure the source interfaces for the mirror. It is not restricted

the source interface of the mirror on the switch. The source can be one interface, or can be multiple