Page MenuHomeVyOS Platform

SPAN port mirroring continues after configuration is removed
Closed, ResolvedPublicBUG

Description

When the SPAN port mirroring configuration is removed, the SPAN port mirroring still working but ONLY for egress traffic.

Topology:

image-20260306-154126.png (145×721 px, 9 KB)

  • Eth0 is memeber of bond0 interface.
  • Eth1 is the port mirroring where the traffic is sent to the MonitorServer.

IP_Information

  • 192.168.10.1 --> eth0 VyOSRouter
  • 192.168.10.2 --> eth0 Generator

REPLICATION

After deleting the mirroring configuration:

delete interface bonding bond0 mirror

image-20260306-161041.png (492×1 px, 116 KB)

We can observe eth1 (the old port mirroring) still sending the EGRESSING traffic from bond0 interface.

Checked the traffic control filters (tc) and return in blank:

image-20260306-161302.png (49×420 px, 3 KB)

However, it seems some internal rules or filters are referencing the qdisc.

sdasd

vyos@VyosRouter# tc qdisc show dev bond0 root
qdisc prio 1: root refcnt 17 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

the refcnt 17 is the reference count

Finally I was able to fix this unexpected behavior by removing the root qdisc and resetting it to the default (pfifo_fast)

This command might impact QoS and shaping rules tied to the qdisc in question:

tc qdisc del dev bond0 root

Details

Version
1.4.4
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

dmbaturin changed Is it a breaking change? from Behavior change to Perfectly compatible.
dmbaturin removed a subscriber: VyOS 1.4 Sagitta (1.4.0).