FULL AI ANALYSIS

Managed switch port-security causes VLAN clients to lose internet while gateway still pingable

Generated Oct 28, 2026, 9:44:48 AM

Analysis summary

Symptoms point to port-security blocking or limiting MACs on access ports while the hosts keep IP connectivity to local L2/L3 (ARP and local ping still working). Possible mechanisms: sticky MAC learning or max-mac exceeded causing the switch to drop outbound frames to the uplink, asymmetric MAC tables between switch and gateway, or storm-control/STP effects isolating forwarding to gateway. Another possibility is downstream device bridging multiple MACs (virtualization host) that exceeds per-port limit. The fact that disabling port-security on a port restored external connectivity supports a port-security mis-trigger as most likely.

Possible causes

Port-security (sticky MAC / max-mac) exceeded on access port causing outbound frames to be dropped

85%

Downstream device (VM host or unmanaged switch) presents multiple MACs, exceeding per-port MAC limit

70%

Asymmetric learning: MAC seen on uplink then on access port (MAC flapping) triggers security policy

55%

STP/errdisable triggered by BPDU guard or storm-control limiting traffic to uplink only

35%

Suggested fixes

1

Diagnostic step 1

On a non-production port, reproduce by connecting the same device and intentionally exceeding max-mac to observe switch behavior; capture switch logs during reproduce.

2

Diagnostic step 2

Run 'show mac address-table dynamic' and 'show port-security interface <port>' to check current MAC counts and violation counters; collect before/after when issue occurs.

3

Diagnostic step 3

If devices behind a port are virtualization hosts or contain bridges, increase per-port max-mac to accommodate expected MACs or move that host to a dedicated trunk with proper VLAN tagging.

4

Diagnostic step 4

Temporarily set the port to log-only or protective mode (if supported) so violations are logged but not blocked while you monitor impact.

5

Diagnostic step 5

Check for MAC flapping between ports with 'show mac address-table | include <MAC>' and inspect STP events; if flapping present, trace cabling and disable unintended bridging.