The port-mirroring packet-discard observing-port command enables the function of sending packet discarding packets to the observing port.
The undo port-mirroring packet-discard observing-port command disables the function of sending packet discarding packets to the observing port.
port-mirroring packet-discard observing-port { interface-name | interface-type interface-num } [ acl-number { acl-number | ipv6 acl-number } ]
undo port-mirroring packet-discard
| Parameter | Description | Value |
|---|---|---|
interface-name |
Specifies the observing port name. |
- |
interface-type |
Specifies the interface type of the observing port. The observing port only support GE port. |
- |
interface-num |
Specifies the interface number of the observing port. |
- |
acl-number |
Specifies the advanced ACL number. |
The value is an integer ranging from 3000 to 3999. |
By default, the function of sending packet discarding packets to the observing port is disabled.
After configuring the observing port and running the port-mirroring packet-discard observing-port command, the device sends packet discarding packets to the observing port. Then, you can capture and analyze the packets on the PC connecting to the observing port.
The management port, HA port, and Eth-Trunk interface and sub-interface cannot be used as observing ports.
# Enable the function of sending packet discarding packets to the observing port GigabitEthernet 0/0/1.
<sysname> system-view
[sysname] port-mirroring packet-discard observing-port GigabitEthernet 0/0/1 acl-number 3001
Warning: The function may affect the system performance, continue? [Y/N]:y
Warning: According to your demand, for the purpose of operating network and ser
vice, port mirroring may send some personal communications to other ports on the
device. The vendor is unable to collect or save the content of users' communic
ations. It is suggested that you activate the interception-related functions bas
ed on the applicable laws and regulations in terms of purpose and scope of usage
. You are obligated to take considerable measures to ensure that the content of
users' communications is fully protected when the content is being used and saved.