Command Guide of WGSW-28040
216
Specify the source interface, Valid interfaces include physical ports and port channels.
Specify the traffic direction to mirror.
Specify the mirrored VLAN ID
Specify the SPAN destination. A destination must be a physical port
Enable ingress traffic forwarding.
Mode:
Global Configuration
Usage Guide:
Use the monitor session global configuration command to start a new Switched Port Analyzer (SPAN) source or
destination session
Use the no form of this command to remove the SPAN session or to remove source or destination interfaces or filters
from the SPAN session
You can verify your setting by entering the show mirror Privileged EXEC command
Example:
This example shows how to create a local SPAN session 1 to monitor both sent and received traffic on source port
gi1.
Switch(config)# mirror session 1 source interface gi2-5 both
Switch(config)# mirror session 1 destination interface gi1
Switch(config)# show mirror session 1
Session 1 Configuration
Source RX Port : gi2-5
Source TX Port : gi2-5
Destination port : gi1
Ingress State: disabled
Switch(config)# mirror session 2 source vlan 100
Switch(config)# mirror session 2 destination interface gi1 allow-ingress
Switch(config)# show mirror session 2
Session 2 Configuration
Mirrored VLAN: 100
Destination port : gi1
4.16.2 show mirror