D-Link DWS-1008 CLI Manual 46
set port mirror
Configures port mirroring. Port mirroring is a troubleshooting feature that copies (mirrors) traffic
sent or received by a DWS-1008 port (the source port) to another por t (the observer) on the
same DWS-1008. You can attach a protocol analyzer to the observer port to examine the source
port’s traffic. Both traffic directions (send and receive) are mirrored.
Syntax: set port mirror source-port observer observer-port
source-port
observer-port
Defaults: None
Access: Enabled.
Usage: The switch can have one port mirroring pair (one source por t and one observer port)
at a time. The source port can be a network port, AP access port, or wired authentication port.
However, the observer port must be a network port, and cannot be a member of any VLAN or
port group.
Examples: The following command sets port 2 to monitor port 1’s traffic:
DWS-1008# set mirror port 1 observer 2
See Also:
• clear port mirror
Number of the port whose traffic you want to analyze. You can specify only
one port.
Number of the port to which you want the switch to copy the source port’s
traffic.
set port name
Assigns a name to a port. After naming a por t, you can use the port name or number in other
CLI commands.
Syntax: set port port name name
port
name name
Number of a physical port. You can specify only one port.
Alphanumeric string of up to 16 characters, with no spaces.