< Home

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 0/0/2
    [HUAWEI-GigabitEthernet0/0/2] undo port-mirroring to observe-port 1 inbound   // Unbind the mirrored port from the observing port 1.
    [HUAWEI-GigabitEthernet0/0/2] quit
    [HUAWEI] undo observe-port 1   // Delete the observing port.

  • Delete the VLAN mirroring configuration.

    <HUAWEI> system-view
    [HUAWEI] vlan 10
    [HUAWEI-vlan10] undo mirroring to observe-port 1 inbound   // Unbind the VLAN from the observing port 1.
    [HUAWEI-vlan10] quit
    [HUAWEI] undo observe-port 1   // Delete the observing port.

  • Delete the MAC address mirroring configuration.

    <HUAWEI> system-view
    [HUAWEI] vlan 10
    [HUAWEI-vlan10] undo mac-mirroring 1-1-1 to observe-port 1 inbound   // Unbind the MAC address from the observing port 1.
    [HUAWEI-vlan10] quit
    [HUAWEI] undo observe-port 1   // Delete the observing port.

  • Delete the traffic mirroring configuration.

    <HUAWEI> system-view
    [HUAWEI] interface gigabitethernet 0/0/2
    [HUAWEI-GigabitEthernet0/0/2] undo traffic-policy p1 inbound   // Cancel the traffic policy.
    [HUAWEI-GigabitEthernet0/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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >