Managed switch port-security causes VLAN clients to lose internet while gateway still pingable
Environment
Office network: single L3 gateway/router, 24-port managed switch running vendor OS with 802.1Q trunks; VLAN 10 for clients (access ports), native VLAN configured on uplink, port-security configured with sticky MAC and max-mac 2 on access ports.
Symptoms
Several laptops and VoIP phones on VLAN10 intermittently lose internet access (cannot reach external sites) but can still ping the local L3 gateway and other VLAN10 hosts for a short period. Issue occurs 2–3 times/day, affects different ports each time.
Observations
Affected clients keep IP and default gateway. Switch port LED remains green. Switch shows ports in 'errdisable' only rarely. switch MAC table sometimes shows multiple MACs associated with a single access port after incident. No CPU spikes on gateway; gateway ARP table shows entries for clients.
Already attempted
Cleared sticky MAC entries and rebooted switch; temporarily disabled port-security on one access port and problem stopped for devices on that port. Updated switch to latest stable OS two weeks ago. Captured switch logs around event times showing 'port-security violation' messages.
Question
What root causes would lead port-security to cut client internet while allowing local pings, and how can I safely diagnose and prevent it without disrupting users?
Verified community troubleshooting
Check the switch port-security counters and the actual MACs learned on the affected ports first. On the switch CLI, note the per-port MAC count and recent violation timestamps (show port-security and MAC table). If the port is attached to a hypervisor or unmanaged switch that can present many MACs, raise the port's max‑mac setting or move that device to a trunk port so it can carry multiple VLANs properly. To avoid user impact, switch the port to a 'log only' or 'protect' mode (if your OS supports it) rather than outright shutdown, verify external access returns, then harden limits. If MAC flapping or STP events appear in logs, trace the physical cable and check for bridging loops. If the problem persists after adjusting max‑mac and verifying topology, collect switch logs and escalate to the switch vendor support with the MAC table and violation timestamps for deeper diagnostic tools.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking26% match
Managed switch starts ARP storm after adding VLAN: likely misconfigured PIM/IGMP snooping combined with default VLAN flooding
Open0 answers - Networking25% match
VLAN trunk misconfiguration prevents IoT VLAN from accessing internet while management VLAN is fine
Open0 answers - Networking25% match
Intermittent DHCP renewals fail after adding ip helper on routed VLAN — clients keep old IP and lose gateway
Open1 answer - Networking23% match
Managed switch VLAN addition triggers ARP storms and 100% CPU on switch, knocking a /24 offline
Open0 answers - Networking22% match
LAN devices intermittently lose connectivity after enabling jumbo frames on mixed‑vendor switches
Open0 answers