Configuring local mirroring

To configure a local mirroring session in which the mirroring source and destination are on the same switch, follow these general steps:

Procedure
  1. Determine the session and local destination port:
    1. Session number (1) and (optional) alphanumeric name
    2. Exit port (any port on the switch except a monitored interface used to mirror traffic)
    IMPORTANT:

    Hewlett Packard Enterprise strongly discourages connecting a mirroring exit port to a network because doing so can result in serious network performance problems. Only connect an exit port to a network analyzer, IDS, or other network edge device that has no connection to other network resources.

  2. Enter the mirror-port port number command to configure the session.
  3. Determine the traffic to be selected for mirroring by any of the following methods and the appropriate configuration level (mesh and switch).
  4. Enter the monitor command to assign one or more source interfaces to the session.

After you complete step 4, the switch begins mirroring traffic to the configured exit port.

The following commands configure mirroring for a local session in which the mirroring source and destination are on the same switch.

  • The mirror command identifies the destination in a mirroring session.

  • The interface and vlan commands identify the mirroring source, including source interface, traffic direction, and traffic-selection criteria for a specified session.

NOTE:

With no allow-v2-modules specified in the configuration of a switch with V3 modules on KB firmware, Egress VLAN ACLs do not filter mirrored traffic. You must use a port ACL to filter mirrored traffic.