10G Core Routing Switch User Manual
陈泽科技有限公司
- - 22 - -
www.stephen-tele.com
Step 2
monitor session
session_number
source interface
start_interface_id
[
-
end_interface_id
] {both|rx|tx}
Specify the MIRROR session and the source port
(monitored port).
For session_number, the range is from 1 to 4.
For interface-id, specify the source port to monitor.
(Optional) [, | -] Specify a series or range of
interfaces. Enter a space before and after the comma;
enter a space before and after the
hyphen.
(Optional) Specify the direction of traffic to monitor. If
you do not specify a traffic direction, the MIRROR
monitors both sent and received
traffic.
both—Monitor both received and sent traffic. This
is the default.
rx—Monitor received traffic.
tx—Monitor sent traffic.
Note You can use the monitor session session_number
source command multiple times
to configure multiple source ports.
Step 3
monitor session
session_number
destination interface
interface_id
Specify the SPAN session and the destination port
(monitoring port).
For session_number, specify the session number
entered in step 2.
Step 5
exit
Return to privileged EXEC mode.
Step 6
show mirror all
Verify your entries.
Step 7
Copy
running-config
startup-config
(Optional) Save your entries in the configuration file.
To delete a MIRROR SPAN session, use the
no monitor session
session_number
global configuration command.
To remove a source or destination port from the MIRROR session, use the
no monitor session
session_number
source
{interface
interface-id
} global configuration command or the
no monitor session
session_number
destination
interface
interface-id
global configuration command.
This example shows how to set up MIRROR session 1 for monitoring source port traffic to a destination port. First, any
existing MIRROR configuration for session 1 is deleted, and then bidirectional traffic is mirrored from source Gigabit
Ethernet port 1/1 to destination Gigabit Ethernet port 1/2.
Switch(config)#
monitor session 1 source interface gigabitethernet 1/1
Switch(config)#
monitor session 1 destination interface gigabitethernet 1/2
֠
Caution
:
Monitor port speed should match or exceed source port speed, otherwise traffic may be
dropped from the monitor port. When mirroring port traffic, the target port must be
included in the same VLAN as the source port.