DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
106
monitor session
SESSION-NUMBER
source interface
INTERFACE-ID
[, | -] [both | rx | tx]
no monitor session
SESSION-NUMBER
source interface I
NTERFACE-ID
[, | -]
no monitor session
SESSION-NUMBER
Parameters
session
SESSION-NUMBER
Specifies the session number for the port monitor session. The valid
range is 1.
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 port
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
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. If the direction
is not specified, both TX (transmitted)
and RX (received) traffic are monitored.
Example
This example shows how to create a port monitor session with the session number 1. It assigns a physical port
ethernet 1/0/1 as the destination port and three physical ports (ethernet 1/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)#
22-3
show monitor session
This command is used to display all or a specific port mirroring session.