How to configure a Port Mirror

Created: Sep 6, 2018 22:13:40Latest reply: Sep 6, 2018 22:36:45 223 1 1 0

Configuring Port Mirroring

 

 

In port mirroring, packets passing through mirrored ports are copied and then sent to specified observing ports for analysis and monitoring. Port mirroring is classified into local port mirroring and Layer 2 remote port mirroring based on observing ports.

 

The following example configures local port mirroring.

 

You can copy packets on a mirrored port to an observing port.

For example, copy incoming packets (received packets) on mirrored port GE0/0/2 to observing port GE0/0/1.

 

GE0/0/1 is directly connected to a monitoring device.

 

<HUAWEI> system-view
[HUAWEI]
observe-port 1 interface gigabitethernet 0/0/1     <- Este es el MONITOR en base al Observe 1

 

[HUAWEI] interface gigabitethernet 0/0/2                                 <- ESTE SERA MONITOREADO
[HUAWEI-GigabitEthernet0/0/2]
port-mirroring to observe-port 1 inbound

 

You can copy packets on one mirrored port to N observing ports.

 

For example, copy incoming packets (received packets) on mirrored port GE2/0/1 to observing ports GE1/0/1 through GE1/0/3. These observing ports are directly connected to monitoring devices.

  • Configure observing ports one by one.
    <HUAWEI> system-view
    [HUAWEI]
    observe-port 1 interface gigabitethernet 1/0/1
    [HUAWEI]
    observe-port 2 interface gigabitethernet 1/0/2
    [HUAWEI]
    observe-port 3 interface gigabitethernet 1/0/3

 

  • [HUAWEI] interface gigabitethernet 2/0/1
    [HUAWEI-GigabitEthernet2/0/1]
    port-mirroring to observe-port 1 inbound
    [HUAWEI-GigabitEthernet2/0/1]
    port-mirroring to observe-port 2 inbound
    [HUAWEI-GigabitEthernet2/0/1]
    port-mirroring to observe-port 3 inbound

 

  • Configure observing ports in a batch (only in V200R005 and later versions).
    <HUAWEI> system-view
    [HUAWEI]
    observe-port 1 interface-range gigabitethernet 1/0/1 to gigabitEthernet 1/0/3
    [HUAWEI]
    interface gigabitethernet 2/0/1
    [HUAWEI-GigabitEthernet2/0/1]
    port-mirroring to observe-port 1 inbound

 

 

  

  • x
  • convention:

xelamaster69  Visitor   Created Sep 6, 2018 22:36:45 Helpful(0) Helpful(0)

Thanks for how to configure port mirroring and how to use it, this particularly topic is so difficult for me and with this information is clear now.
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top