Owners manual
DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
388
44. Mirror Commands
44-1 monitor session destination interface
This command is used to configure the destination interface for a port monitor session, allowing packets
on source ports to be monitored via a destination port. Use the no form of the command to delete a port
monitor session or remove the destination interface of the session.
monitor session SESSION-NUMBER destination interface INTERFACE-ID
no monitor session SESSION-NUMBER destination interface INTERFACE-ID
no monitor session SESSION-NUMBER
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 destination interface for the port monitor session.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use this command to configure the destination interface for a local monitor session.
Both physical ports and port channels are valid as destination interfaces for 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 the destination interface of multiple sessions,
but it can be a source interface of only one session.
Example
This example shows how to create a port monitor session with the session number 1. It assigns a
physical port ethernet1/0/1 as the destination port and three physical source ports (ethernet1/0/2 to
ethernet1/0/4) as monitor source ports.
Switch# configure terminal
Switch(config)# monitor session 1 destination interface ethernet1/0/1
Switch(config)# monitor session 1 source interface ethernet1/0/2-4
Switch(config)#
44-2 monitor session source interface
This command is used to configure the source port of a port monitor session. Use the no form of this
command to remove a port monitor session or remove a source port from the port monitor session.