0% found this document useful (0 votes)
12 views6 pages

Monitor Commands

The document provides detailed instructions on configuring SPAN and RSPAN sessions using monitor session source and destination commands in switch configuration mode. It outlines the syntax, usage guidelines, and examples for creating and modifying source and destination sessions. Additionally, it specifies the limitations and requirements for configuring these sessions, including the number of source ports and the traffic direction to monitor.

Uploaded by

Prem Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

Monitor Commands

The document provides detailed instructions on configuring SPAN and RSPAN sessions using monitor session source and destination commands in switch configuration mode. It outlines the syntax, usage guidelines, and examples for creating and modifying source and destination sessions. Additionally, it specifies the limitations and requirements for configuring these sessions, including the number of source ports and the traffic direction to monitor.

Uploaded by

Prem Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Monitor Commands

• monitor session source, on page 2


• monitor session destination, on page 4

Monitor Commands
1
Monitor Commands
monitor session source

monitor session source


To create a SPAN or RSPAN source session, use the monitor session source command in switch configuration
mode. To remove a source session, use the no form of this command.

monitor session session_number source {interfaces gigabitEthernet interface-id [both| rx | tx]


| [remote] vlan vlan-id}
no monitor session session_number source {interfaces gigabitEthernet interface-id | [remote]
vlan vlan-id}

Syntax Description session_number Specifies the session number identified with the SPAN or RSPAN session.
Valid range is from 1 to 7.

interfaces gigabitEthernet Specifies the Gigabit Ethernet port for a SPAN session.
interface-id
both, rx, tx Specifies the traffic direction to monitor. If you do not specify a traffic
direction, the source interface sends both transmitted and received traffic.

remote Specifies remote VLAN for an RSPAN session.

vlan vlan-id Specifies the VLAN for a SPAN or an RSPAN session. Only value of 1
is allowed for the session_number parameter.

Command Default No SPAN sessions are configured.

Command Modes Switch configuration (config-switch)

Command History Release Modification


3.6.1 This command was introduced.

Usage Guidelines To create a SPAN source session to monitor the traffic that enters or leaves a source port, use the monitor
session session_number source interfaces gigabitEthernet interface-id [both | rx | tx] command . To
create a SPAN source session to monitor the traffic that is bridged into a source VLAN, use the monitor
session session_number source vlan vlan-id command.
A session can have up to eight source ports and one destination port with the same session number. A source
port cannot be a destination port. Each monitor session session_number source command defines only one
Gigabit Ethernet port or VLAN. If a packet is mirrored by a port-based ingress mirroring mechanism along
with any other ingress mirroring mechanism, the session with the higher session number is selected.
A session cannot have both SPAN and RSPAN source ports. All source ports in a session must be of same
type, that is, either SPAN or RSPAN.
Use the no monitor session session_number source {interfaces gigabitEthernet interface-id | vlan vlan-id}
command to remove one source port of a source session. Use the no monitor session session_number source
command to remove all sources ports of a source session. To change a source port, you must first remove it
and then create it again as shown in Example 2.

Monitor Commands
2
Monitor Commands
monitor session source

Example 1
The following example configures a SPAN session consisting of three source ports and one destination
port. The first source session copies traffic for both directions from the source port 1/1, the second
source session copies the bridged traffic from VLAN 100, and the third source session copies the
traffic received on the source port 1/2. The port 1/3 is configured as the destination port.

nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/1 both


nfvis(config-switch)# monitor session 1 source vlan 100
nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/2 rx
nfvis(config-switch)# monitor session 1 destination interfaces gigabitEthernet 1/3

Example 2
The following example shows how to change a source session.

nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/3 tx


nfvis(config-switch)# commit
nfvis(config-switch)# no monitor session 1 source interfaces gigabitEthernet 1/3 tx
nfvis(config-switch)# commit
nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/3 rx
nfvis(config-switch)# commit

Monitor Commands
3
Monitor Commands
monitor session destination

monitor session destination


To create a SPAN or RSPAN destination session, use the monitor session destination command in switch
configuration mode. To remove a destination session, use the no form of this command.

monitor session session_number destination {interfaces gigabitEthernet interface-id [network]


| remote vlan vlan-id reflector-port gigabitEthernet interface-id network}
no monitor session session_number destination

Syntax Description session_number Specifies the session number identified with the SPAN or flow
mirror session. Valid range is from 1 to 7.

interfaces gigabitEthernet interface-id Specifies the Gigabit Ethernet port for the SPAN or flow mirror
session.

network Specifies that the destination port acts also as a network port.

remote vlan vlan-id Specifies the remote VLAN for an RSPAN session.

reflector-port gigabitEthernet Specifies the reflector Gigabit Ethernet port that will flood the
interface-id RSPAN traffic onto the RSPAN VLAN.

Command Default No SPAN sessions are configured.

Command Modes Switch configuration (config-switch)

Command History Release Modification


3.6.1 This command was introduced.

Usage Guidelines Use the monitor session session_number destination interfaces gigabitEthernet interface-id command to
create a SPAN session to copy traffic to a destination port.
If the network keyword is not defined, only mirrored traffic is sent on a destination port. All input traffic is
discarded and a value of DOWN is advertised as its operational status to all applications running on it. 802.1x
cannot be enabled on a destination port configured without the network keyword.
A destination port cannot be a source port. A port cannot be configured as the destination port with the network
keyword if it belongs to the source VLAN. Mirrored traffic is sent to queue number 1 of the destination port.

Example
The following example configures a SPAN session consisting of three source ports and one destination
port. The first source session copies traffic for both directions from the source port 1/1, the second
source session copies the bridged traffic from VLAN 100, and the third source session copies the
traffic received on the source port 1/2. The port 1/3 is configured as the destination port.

nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/1 both


nfvis(config-switch)# monitor session 1 source vlan 100

Monitor Commands
4
Monitor Commands
monitor session destination

nfvis(config-switch)# monitor session 1 source interfaces gigabitEthernet 1/2 rx


nfvis(config-switch)# monitor session 1 destination interfaces gigabitEthernet 1/3

Monitor Commands
5
Monitor Commands
monitor session destination

Monitor Commands
6

You might also like