monitor session destination
To create a new Switched Port Analyzer (SPAN) or Remote SPAN (RSPAN) destination session, use the monitor session destination command in Global Configuration mode. To remove a destination session, use the no form of the command.
Syntax
monitor session session_number destination {{interface interface-id [network]} | {remote vlan vlan-id reflector-port interface-id} network}
no monitor session session_number destination
Parameters
-
session_number—Specify the session number identified with the SPAN, RSPAN or flow mirror session. The range is 1 to 4.
-
interface interface-id—Specify the destination interface for the SPAN, RSPAN or flow mirror session (Ethernet port). When the source interface is a RSPAN VLAN the RSPAN VLAN_ID is removed from all frames copied to the interface.
-
network—Specify that the destination port acts also as a network port.
Default Configuration
No SPAN and RSPAN sessions are configured.
Command Mode
Global Configuration mode
User Guidelines
Use the monitor session session_number destination interface interface-id, to create a SPAN, local flow mirror.
If the network keyword is not defined only mirrored traffic sent on a destination port and all input traffic is discard and a value of DOWN is advertised as its operational status to all applications running on it.
A destination port configured without the network keyword has the following limitations:
-
UDLD cannot be enabled on the port.
-
802.1x cannot be enabled on the port.
A port cannot be configured as destination port with the network keyword if one the following conditions is true:
-
It belongs to the source VLAN
-
It belongs to the remote VLAN
Please, do not add the destination port to the source.
A destination port with the network keyword cannot be configured on an edge port (a port having one of the vlan-mapping modes.
Mirrored traffic is sent to queue number 1 of the destination port.
Use the no monitor session session_number destination command to remove one destination session.
Examples
Example 1. The following example configures a SPAN session consisting from 3 source and one destination session. The first source session copies traffic for both directions from the source port gi1/0/2, the second source session copies bridges traffic from VLAN 100, and the third source session copies traffic for received on the source port gi1/0/3. The destination session defines port gi1/0/1 as the destination port.
switchxxxxxx(config)# monitor session 1 source interface gi1/0/2 both
switchxxxxxx(config)# monitor session 1 source vlan 100
switchxxxxxx(config)# monitor session 1 source interface gi1/0/3 rx
witchxxxxxx(config)# monitor session 1 destination interface gi1/0/1