beautypg.com

Set port mirror command, Clear port mirror command, Set port vlan command – Avaya P130 User Manual

Page 93

background image

Chapter 6 Avaya P130 CLI

Avaya P130 User’s Guide

79

Set port mirror Command

Use the

set port mirror command to define a port mirroring source-

destination pair in the switch.

The syntax for this command is:
set port mirror source-port / mirror-port
/ sampling {always | disable} direction
{rx| tx | both}

Example:
P130-1# set port mirror source-port 1/9 mirror-port 1/10
sampling always direction both
Mirroring both Rx and Tx packets from port 1/9 to port 1/10 is
Enabled

Clear port mirror Command

Use the

clear port mirror command to cancel port mirroring.

The syntax for this command is:
clear port mirror //module>/

Example:
P130-1# clear port mirror 1/2/1/4
this command will delete the port mirror entry
- do you want to continue (Y/N)? y

Mirroring packets from port 1/2 to port 1/4 is cleared

Set port vlan Command

See Set port vlan Command on page 90.

always

Keyword to activate the port mirroring entry

disable

Keyword to change the status of the port mirroring entry to
"not ready"

rx

Keyword to copy only incoming traffic

tx

Keyword to copy only outgoing traffic

both

Keyword to copy both incoming and outgoing traffic