Deleting the Mirroring Configuration
Context
If you want to delete the mirroring configuration and restore observing ports as service ports, perform the following operations.
Before deleting the mirroring configuration, you can run the display port-mirroring command and display current-configuration command to view the mirroring configuration on the device. The following example describes how to delete the mirroring configuration.
Procedure
- Delete the port mirroring configuration.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/2 [HUAWEI-GigabitEthernet1/0/2] undo port-mirroring to observe-port 1 inbound // Unbind the mirrored port from the observing port 1. [HUAWEI-GigabitEthernet1/0/2] quit [HUAWEI] undo observe-port 1 // Delete the observing port.
- Delete the traffic mirroring configuration.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/2 [HUAWEI-GigabitEthernet1/0/2] undo traffic-policy p1 inbound // Cancel the traffic policy. [HUAWEI-GigabitEthernet1/0/2] quit [HUAWEI] undo traffic policy p1 // Delete the traffic policy. [HUAWEI] undo traffic behavior b1 // Delete the traffic behavior. [HUAWEI] undo traffic classifier c1 // Delete the traffic classifier (This operation is optional. If this traffic classifier is being used by another traffic policy, it can be retained.) [HUAWEI] undo observe-port 1 // Delete the observing port.