< Home

observing-port

Function

The observing-port command configures the mirroring port.

The undo observing-port command cancels the mirroring port.

Format

observing-port [ hardware ] observing-port

undo observing-port [ hardware ] [ observing-port ]

Parameters

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.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Set the mirroring port to GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] observing-port GigabitEthernet 0/0/1
Info: Do not configure other services on the observing port, to avoid affecting 
the port mirroring service 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >