DXS-1210 Series Smart Managed Switch CLI Reference Guide
211
Parameters
session SESSION-NUMBER
Specifies the session number for the port monitor session. The valid
range is 1 to 4.
interface INTERFACE-ID
Specifies the source interface for a port monitor session.
,
(Optional) Specifies the number of interfaces, or separate a range of
interfaces from a previous range. No spaces before and after the
comma.
-
(Optional) Specifies a range of interfaces. No spaces before and after
the hyphen.
both
(Optional) Specifies to monitor the packets transmitted and received
on the port.
rx
(Optional) Specifies to monitor the packets received on the port.
tx
(Optional) Specifies to monitor the packets transmitted on the
portwithout forwarding, which means regardless of the port’s STG
status.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Both physical ports and port channels are valid as source interfaces of monitor sessions.
For a monitor session, multiple source interfaces can be specified, but only one destination interface
can be specified. An interface cannot be a source interface of one session and destination port of
another session simultaneously. An interface can be configured as destination interface of multiple
sessions, but it can be a source interface of only one session.
If the direction is not specified, both TX (transmitted) and RX (received) traffic are monitored. Once TX
forwarding has been specified, it cannot be changed back to TX only.
Example
This example shows how to create a port monitor session with session number 1. It assigns a
physical port ethernet1/0/1 as a destination port and three physical ports (ethernet1/0/2 to
ethernet1/0/4) as monitor source ports.
Switch# configure terminal
Switch(config)#monitor session 1 destination interface ethernet 1/0/1
Switch(config)# monitor session 1 source interface ethernet 1/0/2-4
Switch(config)#
27-3 show monitor session
This command is used to display all or a specific port mirroring session.
show monitor session [SESSION-NUMBER]
Parameters
SESSION-NUMBER
(Optional) Specifies the session number which you want to display.