Port Monitor Commands
monitor session source interfaces
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
374
27
Example
The following example defines the destination remote-span VLAN 2 and reflector
interface fa11 for the monitor session 1:
switchxxxxxx(config)#
vlan 2
switchxxxxxx(config-vlan)#
remote-span
switchxxxxxx(config-vlan)#
exit
switchxxxxxx(config)#
monitor session 1 destination remote-span vlan 2
reflector-interface gi11
monitor session source interfaces
To start a source interface (monitored) of a port monitor session (mirroring), use
the monitor session source interfaces Global Configuration mode command.
Use the no form of this command to stop a port monitor session.
Syntax
monitor session
session-number
source interfaces
interface-id
{both | rx | tx}
no monitor session
session-number
source interfaces
interface-id
{both | rx | tx}
monitor session
session-number
source vlan
vlan-id
no monitor session
session-number
source vlan
Parameters
•
session-number
—The identifier for the port monitor session. (Range: 1 to 4)
•
interface-id
—The source interface ID. The interface ID must be an Ethernet
port.
•
both—Monitors both transmitted and received packets.
•
rx—Monitors received packets only.
•
tx—Monitors transmitted packets only.
•
vlan
vlan-id
—Specifies a VLAN.
Default Configuration
N/A