21-10
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 21 Configuring SPAN and RSPAN
Configuring SPAN
This exam ple shows how to set up a SPAN sessi on, s ession 1 , for m onit or ing s our ce p ort tra ffic to a
destinati on port . Fi rst, any existing SPAN con figuratio n for se ssion 1 is c lea red, and the n bidire cti onal
traffic is mirror ed f rom so urce p ort 1 to de sti natio n p ort 10.
Switch(config)# no monitor session 1
Switch(config)# monitor session 1 source interface fastEthernet0/1
Switch(config)# monitor session 1 destination interface fastEthernet0/10
encapsulation dot1q
Switch(config)# end
Step 3 monitor s ession session_n umber source
interface interface-id [, | -] [both | rx | tx]Specify the SPAN session and the source port (monitored port).
For session_number, specify 1 or 2.
For interface-id, specify the source port to monitor. Valid interfaces
includ e physical int erfaces and por t-channe l logica l interfac es
(port-channel port-channel-number).
(Optional) [, | -] Spec ify a se ries or rang e of int erf ac es. En ter a sp ace
after the c om ma ; e nter a s pa ce b ef ore an d a ft er th e hyph en.
(Optional) Specify the direction of traffic to monitor. If you do not
specify a traffic direction, the source interface sends both sent and
received traffic. On ly r ec eived (rx) tra ffic can be m onit or ed on
additional source ports.
bothMonit or bo th rece ived and se nt t raffic.
rxM oni tor rece ived traffic.
txMonitor sent traffic.
Step 4 monitor s ession session_number
de st ina tio n int erf ace interface-id
[encapsulation {dot1q | isl}]
Specify the SPAN session and the destination port (monitori ng port).
For session_number, specify 1 or 2.
For interface-id, specify the destination port. Valid interf aces include
physical in terfaces.
(Optional) Specify the encapsulation header for outgoing packets. If
not s peci fied, p ack ets ar e sen t in na tive form .
islU se I SL en capsu la tion.
dot1qUse 802. 1Q encapsul ation.
Step 5 end Return to privileged EXEC mode.
Step 6 show monitor [session session_number] Verify your entries.
Step 7 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.
Command Purpose