< Home

Example for Configuring Local 1:N Port Mirroring (Observing Ports Are Configured in a Group)

Networking Requirements

In Figure 1, the R&D department of a company accesses the Internet through the switch, and monitoring devices Server1, Server2, and Server3 are directly connected to the Switch.

Internet-bound traffic from the R&D department needs to be copied and sent to different servers for different monitoring and analysis purposes.

Figure 1 Local 1:N port mirroring networking

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure GE0/0/2 through GE0/0/4 of the Switch as local observing ports to forward mirrored packets to different servers.
  2. Configure GE0/0/1 of the Switch as a mirrored port to copy the traffic passing through it and send the traffic to different local observing ports.

Procedure

  1. Configure observing ports.

    # Configure GE0/0/2 through GE0/0/4 of the Switch as local observing ports in a local observing port group.

    <HUAWEI> system-view
    [HUAWEI] sysname Switch
    [Switch] observe-port 1 interface-range gigabitethernet 0/0/2 to gigabitethernet 0/0/4
    # Disable the observing port from forwarding data packets.
    [Switch] observe-port 1 forwarding disable

  2. Configure a mirrored port.

    # Configure GE0/0/1 of the Switch as a mirrored port to copy the packets received by the mirrored port and send them to local observing ports.

    [Switch] interface gigabitethernet 0/0/1
    [Switch-GigabitEthernet0/0/1] port-mirroring to observe-port 1 inbound
    [Switch-GigabitEthernet0/0/1] return

  3. Verify the configuration.

    # Check the observing port configuration.

    <Switch> display observe-port
      ----------------------------------------------------------------------
      Index          : 1
      Untag-packet   : No
      Forwarding     : No
      Interface-range: GigabitEthernet0/0/2 to GigabitEthernet0/0/4
      ----------------------------------------------------------------------

    # Check the mirrored port configuration.

    <Switch> display port-mirroring
      ----------------------------------------------------------------------
      Observe-port 1 : GigabitEthernet0/0/2 to GigabitEthernet0/0/4
      ----------------------------------------------------------------------
      Port-mirror:
      ----------------------------------------------------------------------
           Mirror-port               Direction  Observe-port
      ----------------------------------------------------------------------
      1    GigabitEthernet0/0/1      Inbound    Observe-port 1
      ----------------------------------------------------------------------

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