DGS-6604
m
monitor session source interface
CLI Reference Guide
435
monitor session source interface
Use monitor session source interface to configure the source port of a port
monitor session. Use the no form of this command to remove all or a port monitor
session, or remove a source port from the port monitor session.
monitor session SESSION-NUMBER source interface
INTERFACE-ID
[, | -] [both | rx | tx]
no monitor session SESSION-NUMBER source interface
INTERFACE-ID
[, | -] [both | rx | tx]
no monitor session [SESSION-NUMBER]
Default
No port monitor function is configured.
Command Mode
Global configuration
Usage Guideline
Both physical ports and port channel are valid as source interfaces of monitor
sessions. The physical port that is a port channel member port cannot be
specified as the source interface.
For a monitor session, multiple source interfaces can be specified, but only one
destination interface can be specified. An interface can not 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 direction is not specified, both transmitted and received traffic are monitored.
If no monitor session is entered without specifying a session number, all port
monitor sessions are deleted.
Example
This example shows how to create a port monitor session with session number 1.
It assigns a physical port 2.1 as a destination port and three source physical
ports (eth 2.2, eth 2.3 and eth 2.4) as monitor source ports.
Syntax Description
SESSION-NUMBER
Specify the session number for the port monitor session. The valid range is 1 to
80.
source interface
INTERFACE-ID
Specify the source interface for a port monitor session.
,
(Optional) Specifies a series of interfaces, or separate a range of interfaces from
a previous range. No space before and after the comma.
-
(Optional) Specifies a range of interfaces. No space before and after the hyphen.
both
,
rx
,
tx
(Optional) Specifies the traffic direction to monitor. If not specified, the source
interface sends both transmitted and received traffic.
,
(Optional) Specifies a series of interfaces, or separate a range of interfaces from
a previous range. No space before and after the comma.