Skip to main content
Huanan Tengfei Technology

Home / News

Port Mirroring Captures Nothing? Check the Destination Port

A troubleshooting sequence for mirror-group prerequisites, dedicated destination ports, spanning tree, aggregate members and VLAN tags, scoped to the cited H3C guide.

Port Mirroring Captures Nothing? Check the Destination Port

To capture traffic from a terminal connected to an access switch, the usual approach is to mirror its port to a spare port and connect a capture device. In practice, three problems recur: the mirror group is configured but no packets arrive; unrelated sessions appear in the capture; or an attempt to mirror an entire 10-Gigabit uplink fails because the aggregate interface was selected as the source.

These symptoms call for checks of the mirroring prerequisites and port assignments, rather than repeated changes to a single command.

1. Configure both the source and destination

The local mirror group described in the H3C guide takes effect only after both the mirror source and mirror destination are configured. A common omission is configuring only the source, or placing the destination in a different group. The configuration may be accepted without producing the expected copied traffic.

A mirror group can contain multiple source ports. When several terminals need to be observed, add their source ports to the same group rather than creating groups that compete for the same destination.

2. Reserve the destination port for capture

The guide explains that a destination port can transmit both mirrored packets and packets normally forwarded from other ports. To keep the monitoring device focused on mirrored traffic, dedicate the destination to port mirroring.

Using a supposedly spare port that also connects a printer or temporary AP can introduce unrelated traffic. Such sessions can then be mistaken for evidence of the fault being investigated.

3. Check spanning tree on the destination

The documented limitation is that spanning tree must not be enabled on the destination port, because it affects normal mirroring operation. On access switches, a port may inherit a global spanning-tree setting. Check its actual state before starting the capture.

4. Use a supported source-port type

For the models and software version covered by the guide, Layer 2 aggregate interfaces, Layer 3 aggregate interfaces, Tunnel interfaces and VLAN interfaces are not supported as local mirroring source ports. The member ports of a Layer 2 or Layer 3 aggregate can be used instead.

Traffic is distributed across aggregate members, so capturing one member generally covers only part of the aggregate's sessions. This coverage statement is an inference from the documented source restrictions and aggregate forwarding behavior; verify the actual sessions captured. Capturing the whole path may require remote mirroring or moving the capture point to the aggregation side.

5. Account for VLAN tags in each direction

For inbound mirroring, the mirrored packet retains the original packet's VLAN-tag state. For outbound mirroring, the mirrored packet carries the VLAN tag associated with the packet before it leaves the source port.

Consequently, a frame observed inbound may be untagged while the corresponding outbound capture is tagged. A difference in a capture tool's VLAN filter results is not, by itself, evidence of an incorrect configuration. First establish the direction being mirrored.

6. Check source and destination membership

A source port can belong to only one mirror group, whether it is used for one direction or both. The destination must not be a member of a link-aggregation group.

These restrictions matter when one team wants to observe both directions or share a source with another monitoring arrangement. Remove the destination from an aggregation group before assigning it to mirroring, and do not try to place the same source in separate local and remote groups.

7. For remote mirroring, verify the transit path

  • Configure the destination device first, then intermediate devices, and the source device last.
  • Do not modify or remove the VLAN ID while mirrored traffic travels from source to destination; doing so invalidates the documented Layer 2 remote-mirroring arrangement.
  • When a port is mirrored bidirectionally in one group, disable MAC learning for the remote-mirroring VLAN on the source, intermediate and destination devices as required by the guide.

An incorrectly provisioned transit VLAN can produce no packets at the destination without a useful configuration error. A reversed configuration sequence can also obscure which part of the path is missing.

8. Troubleshoot by symptom

Symptom First check Expected condition
No packets at the capture device Destination assignment and ownership Source and destination are configured in the same valid group
Unrelated sessions in the capture Other uses of the destination port The port is dedicated to mirroring
Capture stops or behaves abnormally during a busy period Destination spanning-tree state Spanning tree is not enabled on that destination
Aggregate interface selected but mirroring does not work Source-interface type Use supported member ports instead of the aggregate interface itself
VLAN filters differ between captures Inbound versus outbound direction Interpret the tag rules for the selected direction
One source does not work in two groups Group membership A source belongs to one mirror group

9. Specify observable acceptance checks

A procurement requirement should describe the checks to perform, beyond stating that port mirroring is supported:

  1. Specify local or remote mirroring, the number of sources and the number of destinations.
  2. Specify the physical source ports or aggregate member ports. Do not assume that the aggregate interface itself is a supported source or that one member makes the full aggregate bandwidth visible.
  3. Reserve the destination: no business endpoint, no aggregation membership and no spanning tree.
  4. Keep the group and port configuration output, compare source and destination MAC addresses in the capture, and record destination receive counters during a business peak.

Item 4 supplies direct evidence that the target traffic was copied. The earlier items establish that the intended configuration was entered.

Scope and references

This article follows chapter 11, Mirroring Configuration, in the H3C E500C-F and FS5100-EI all-optical switch configuration guide, R63xx-6W102 (Chinese). Capabilities, commands and restrictions must be checked against the guide for the exact purchased model and software version. Other manufacturers can implement different restrictions.

The website's related equipment reference is the Hikvision DS-3E3754TF switch product page (Chinese). Its listed ports are 24 Gigabit electrical ports, 24 Gigabit optical ports and 6 10-Gigabit optical ports. This image is a product illustration; the mirroring restrictions discussed above come from the named H3C guide and must not be assumed to apply unchanged to the Hikvision model.

Hikvision DS-3E3754TF fixed-port switch