Port mirroring

Port mirroring lets you select the network traffic of specific switch ports for analysis by a network analyzer. For each port mirroring configuration (the switch supports up to four), you can select many switch ports as source ports but only a single switch port as the destination port. For each port mirroring configuration, you can configure how traffic is mirrored on a source port by selecting packets that are received, transmitted, or both. You can also apply an IP ACL or MAC ACL to filter the traffic that is being mirrored.

A packet that is copied to the destination port is in the same format as the original packet. This means that if the mirror is copying a received packet, the copied packet is VLAN-tagged or untagged as it was received on the source port. If the mirror is copying a transmitted packet, the copied packet is VLAN-tagged or untagged as it is being transmitted on the source port.

To set up a port mirroring configuration:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select Monitoring > Mirroring > Multiple Port Mirroring.

    The Multiple Port Mirroring page displays.

  3. From the Session ID menu, select 1, 2, 3, or 4 as the port mirroring session ID.

    You can set up four port mirroring configurations that functions independently from each other.

  4. Enable or disable the port mirroring configuration by selecting one of the following Admin Mode radio buttons:
    • True: The selected source interfaces are mirrored. That is, traffic entering or leaving the source interfaces is copied (mirrored) to the selected destination port.

    • False: The selected source interfaces are not mirrored.

  5. From the Destination Port menu, select the destination interface to which traffic must be copied.

    For each port mirroring configuration, you can configure one destination port only. The default is None.

  6. From the Filter Type menu, select if traffic must be filtered:
    • None: All traffic is mirrored.
    • IP ACL: Traffic is filtered according to the IP ACL for which you must type the name in the Filter Name field. Only traffic that matches the rules in the IP ACL is mirrored to the destination port.

      For more information about IP ACLs, see Configure a basic or extended IPv4 ACL.

    • MAC ACL: Traffic is filtered according to the MAC ACL for which you must type the name in the Filter Name field. Only traffic that matches the rules in the MAC ACL is mirrored to the destination port.

      For more information about MAC ACLs, see Configure a MAC ACL.

    The following steps refer to the Source Interface Configuration section, in which you must select one or more source interfaces and set the traffic direction.

  7. Select whether to display physical interfaces, LAGs, the CPU, VLANs, or all by clicking one of the following links above the table heading:
    • 1 or Unit ID for a stacked switch:

      • 1: If no switch stack is configured, the physical interfaces for the switch are displayed.
      • Unit ID for a stacked switch: If a switch stack is configured, the physical interfaces for the switch with the selected stack unit ID are displayed.
    • LAG: Only LAGs are displayed.

    • CPU: Only the CPU is displayed.

    • VLANS: Only VLANs are displayed.

    • All: Physical interfaces, LAGs, the CPU, and VLANs are displayed, or for a switch stack, physical interfaces on all switches in the stack, LAGs, the CPU, and VLANs are displayed.

  8. Use one of the following methods to select an interface:
    • In the Go To Interface field, enter the interface in the unit/slot/port format and click on the Go button.
    • Next to the Interface column, select the check box for the interface or interfaces that you want to include.
    Note:   If an interface is a member of a VLAN and is member of a LAG, you cannot select the VLAN as a source VLAN. However, if an interface is a member of a VLAN that you select as a source VLAN, the interface can be a member of a LAG.
  9. From the Direction menu, select the direction of the traffic that must be mirrored from the configured source ports.
    • None: The port (or VLAN) is not mirrored.
    • Tx and Rx: Both egress (transmitted) and egress (received) traffic is mirrored. For a VLAN, this option select the VLAN as the source VLAN.
    • Rx: Ingress (received) traffic only is mirrored. This option is not available for a VLAN.
    • Tx: Egress (transmitted) traffic only is mirrored. This option is not available for a VLAN.
  10. Click the Apply button.

    Your settings are saved.

    If the port is configured as a source port, the Status field displays Mirrored.

    If the port is configured as a destination port, the Status field displays Probe.

  11. To save the settings to the running configuration, click the Save icon.