The observing-port command configures the mirroring port.
The undo observing-port command cancels the mirroring port.
observing-port [ hardware ] observing-port
undo observing-port [ hardware ] [ observing-port ]
| Parameter | Description | Value |
|---|---|---|
hardware |
Indicates port mirroring based on the hardware chip. FW packets first pass through the NP chip and then are sent to the MPU CPU. After the hardware fast forwarding function is enabled by default, only some traffic is sent to the CPU. Therefore, the packets captured based on the hardware chip in port mirroring mode are more comprehensive. In addition, it helps reduce the CPU usage and is therefore recommended. |
- |
observing-port |
Specify the observing port. |
- |
The mirrored port and mirroring port must be an Ethernet interface.
The management port, HA port, and Eth-Trunk interface and sub-interface cannot be used as mirrored ports or observing ports.
When one interface is used as the mirroring port, the other services carried on the interface are not available.