Changes of local port mirroring commands


Starting from V200R002C00, observe-port-index is deleted from observe-port [ observe-port-index ] interface interface-type interface-number and port-mirroring to observe-port observe-port-index { both | inbound | outbound }.



V200R001


Command used to configure an observing interface: observe-port [ observe-port-index ] interface interface-type interface-number


Command used to configure a mirrored interface: port-mirroring to observe-port observe-port-index { both | inbound | outbound }


To configure local port mirroring, perform the following operations:

  1. Run the system-view command to enter the system view.
  2. Run the observe-port [ observe-port-index ] interface interface-type interface-number command to configure a local observing interface.
  3. Run the interface interface-type interface-number command to enter the view of a specified interface.
  4. Run the port-mirroring to observe-port observe-port-index { both | inbound | outbound } command to configure a local mirrored interface.


V200R002 and Later Versions


Command used to configure an observing interface: observe-port interface interface-type interface-number


Command used to configure a mirrored interface: mirror to observe-port { both | inbound | outbound }


To configure local port mirroring, perform the following operations:

  1. Run the system-view command to enter the system view.
  2. Run the observe-port interface interface-type interface-number command to configure a local observing interface.
  3. Run the interface interface-type interface-number command to enter the view of a specified interface.
  4. Run the mirror to observe-port { both | inbound | outbound } command to configure a local mirrored interface.

Scroll to top