Avaya P332MF Switch User Manual


 
Chapter 6 CLI – Layer 2
Avaya P332MF User’s Guide 109
set port mirror
Use the set port mirror command to define a port mirroring source-
destination pair in the stack.
The syntax for this command is:
set port mirror source-port <mod_num>/<port_num> mirror-port
<mod_num>/<port_num> sampling {always|disable} direction
{rx|tx|both}
Output Example:
P330-N# 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
set port spantree
Use the set port spantree command to enable or disable the spanning tree
mode for specific switch ports.
The syntax for this command is:
set port spantree {enable|disable} [module/port]
Output Example:
Enable the spanning tree mode for port 2 on module 3.
P330-N# set port spantree enable 3/2
always Keyword to activate the port mirroring entry
disable Keyword to change the status of the port mirroring entry to “not active”
rx Keyword to copy only incoming traffic
tx Keyword to copy only outgoing traffic
both Keyword to copy both incoming and outgoing traffic
enable|disable Enables or disables the spanning tree mode for the
specified ports.
module/port The switch/port number.