
11.3.
Configure SPAN
11.3.1. SPAN default state
Features
Default value
SPAN status
close
11.3.2. Create the SPAN session and specify the destination port and port
Users can create the SPAN session according to the following steps and specify the destination port
(monitor port) and port (by monitoring port):
If you want to remove the SPAN session, you can use the
no monitor session
session_num
global
configuration command.
Use the
no monitor session
session_num
source interface Gigabitethernet
port-id
command
can delete the source port.
Use no monitor session
session_num
destination interface Gigabitethernet
port-id c
an delete the
destination port.
The following example shows how to create a SPAN session:Session 1, first of all, will be clear of the
current session 1 configuration,then set the port gigabitEthernet 0/1 message to the mirror port
gigabitEthernet 0/8. Show monitor session privilege commands are used to confirm the configuration
was successful.
Switch(config)# no monitor session
1
Switch(config)# monitor session 1 source interface Gigabitethernet 0/1 both
Switch(config)# monitor session 1 destination interface Gigabitethernet 0/8
Switch(config)#
end
Switch#show monitor session
--------------
Session :1
Type : Local Session
Source interface: Gi 0/1
BOTH :Gi 0/1
Destination interface: Gi 0/8
Command
Function
Switch(config)# monitor session
session_num
source iUsers can create the SPAN session
according to the following steps and specify the
destination port (monitor port) and port (by
monitoring port):nterface Gigabitethernet
id
{both |
rx | tx}
Specified Source port.For
Gigabitethernet
id
, please specify
the corresponding slogans.
Switch(config)# monitor session
session_num
destination interface Gigabitethernet
id
Specified destination port.For
Gigabitethernet
id
, please specify
the corresponding slogans.