66-24
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 66 Configuring SPAN and RSPAN
Displaying SPAN and RSPAN Status
To monitor all VLANs on the trunk port, use the
no monitor session
session_number
filter vlan
global
configuration command.
This example shows how to clear any existing configuration on RSPAN session 2, configure RSPAN
session 2 to monitor traffic received on trunk port 4, and send traffic for only VLANs 1 through 5 and 9
to destination remote VLAN 902.
Switch#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
no monitor session 2
Switch(config)#
monitor session 2 source interface gigabitethernet1/1 rx
Switch(config)#
monitor session 2 filter vlan 1 - 5 , 9
Switch(config)#
monitor session 2 destination remote vlan 902
Switch(config)#
end
Displaying SPAN and RSPAN Status
To display the status of the current SPAN or RSPAN configuration, use the
show monitor
privileged
EXEC command.
This example displays the output for the
show monitor
command for SPAN source session 1:
Switch#
show monitor session 1
Session 1
---------
Type: Local Source Session
Source Ports:
RX Only: Fa3/13
TX Only: None
Both: None
Source VLANs:
RX Only: None
TX Only: None
Both: None
Source RSPAN VLAN: None
Destination Ports: None
Encapsulation: DOT1Q
Ingress:Enabled, default VLAN=5
Filter VLANs: None
Dest RSPAN VLAN: None
Ingress : Enabled, default VLAN=2
Learning : Disabled
Step 5
Switch(config)#
monitor session
session_number
destination remote vlan
vlan-id
Specifies the RSPAN session, the destination remote VLAN.
For
session_number
, specifies the session number identified with this
RSPAN session (1 through 6).
For
vlan-id
, specifies the RSPAN VLAN to carry the monitored traffic
to the destination port.
Step 6
Switch(config)#
end
Returns to privileged EXEC mode.
Step 7
Switch#
show monitor
[
session
session_number
]
Verifies your entries.
Step 8
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command
Purpose
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...