No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
mirror (interface view)

mirror (interface view)

Function

The mirror command enables port mirroring.

The undo mirror command disables port mirroring.

By default, port mirroring is disabled.

Format

mirror to observe-port { both | inbound | outbound }

undo mirror { both | inbound | outbound }

Parameters

Parameter

Description

Value

to observe-port

Indicates local port mirroring.

-

both

Mirrors both the incoming and outgoing packets on a port.

-

inbound

Mirrors only incoming packets on a port.

-

outbound

Mirrors only outgoing packets on a port.

-

Views

GE interface view, Ethernet interface view, MultiGE interface view, XGE interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To analyze and monitor packets passing through a port, run the mirror to { observe-port | observe-server } { both | inbound | outbound } command to enable port mirroring.

The device supports mirroring incoming packets, outgoing packets, and both incoming and outgoing packets.

Prerequisites

In local port mirroring, the local observing port has been configured using the observe-port command.

Precautions

  • An observing port can be applied to port mirroring and traffic mirroring simultaneously. However, you cannot identify the source of mirrored packets by using the display interface command.

  • Port mirroring does not affect system security but affects system performance. To ensure system performance, disable port mirroring when you do not need to monitor traffic.

  • To configure mirroring on a port again, run the undo mirror { both | inbound | outbound } command to delete the existing configuration first.

  • To ensure that all mirrored packets are transmitted to the observing port, configure the same link type and bandwidth for the mirrored and observing ports.

Example

# Mirror all incoming packets on GE0/0/1 to the observing port.

<Huawei> system-view
[Huawei] interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1] mirror to observe-port inbound
Related Topics
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 153504

Downloads: 126

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next