Description Specify a port to receive copies of another port’s traffic.
For more information about mirror port configuration, see “Multiple Port-Monitoring Mirror Ports” in the System Configuration and Administration Guide.
Syntax [no] mirror-port portnum ethernet portnum [input | output | both]
Default Not set
Mode Configuration mode
Usage When enabling monitoring on a port, you can specify the mirror port to use. You also can specify the traffic direction. A monitored port can use multiple mirror ports.
To specify the port to monitor, use the monitor command at the interface configuration level. (See the “monitor” command in the Network Configuration Guide.)
Example The following command configures Ethernet port 4 so that it is able to send both inbound and outbound traffic from the monitored port:
The following commands configure a monitor port, Ethernet port 8, to use Ethernet port 4 as the mirror port, using mirror index 1 from above:
Example The following command configures Ethernet port 3 to send only inbound traffic from the monitored port:
The following commands configure a monitor port, Ethernet port 6, to use Ethernet port 3 as the mirror port, using mirror index 2 from above. Note that the input parameter must be used on the monitor port since the mirror port was also configured with the input parameter: