37-24
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter37 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 th rough 5 and 9
to destination remote VLAN 902.
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
Step4 Switch(config)# monitor session
session_number
filter vlan
vlan-id
[,
| -]
Limits the RSPAN source traffic to specific VLANs.
For session_number, specifies the session number identified with this
RSPAN session (1 through 6).
For vlan-id, the range is 1 to 4094; do not enter leading zeros.
(Optional) Use a comma (,) to specify a series of VLANs or use a
hyphen (-) to specify a range of VLANs. Enter a space after the
comma; enter a space before and after the hyphen.
Step5 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.
Step6 Switch(config)# end Returns to privileged EXEC mode.
Step7 Switch# show monitor [session
session_number
]
Verifies your entries.
Step8 Switch# copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Command Purpose