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 port (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-portobserver observer-port

source-port

Number of the port whose traffic you want to analyze. You can specify only

 

one port.

observer-port

Number of the port to which you want the switch to copy the source port’s

 

traffic.

Defaults: None

Access: Enabled.

Usage: The switch can have one port mirroring pair (one source port 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

set port name

Assigns a name to a port. After naming a port, you can use the port name or number in other CLI commands.

Syntax: set port port name name

port

Number of a physical port. You can specify only one port.

name name

Alphanumeric string of up to 16 characters, with no spaces.

D-Link DWS-1008 CLI Manual

46

Page 49
Image 49
D-Link dws-1008 manual Set port mirror, Set port name, Name name