Use it when designing a standard access-port template, or when an end device is blocked on the access switch.
Access Layer Security
Access layer security protects the ports where users and devices connect: port security, 802.1X/MAB, DHCP snooping, Dynamic ARP Inspection, IP Source Guard, BPDU guard and storm control.
1. show interfaces status err-disabled — which feature shut the port?
2. show access-session interface <if> details — authenticated? Which method?
3. show port-security interface <if> — violation and last MAC.
4. No IP address → DHCP snooping trust on the uplink.
5. Fix the cause, then shutdown / no shutdown the port.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show port-securityVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Read-only Verification Verify boundary
A small starting set; see each canonical Topic for complete interpretation and release-specific syntax:
show port-security
show ip dhcp snooping
show ip dhcp snooping binding
show ip arp inspection interfaces
show ip arp inspection statistics vlan 10
VLAN 10 is illustrative. Compare the actual endpoint, binding and trust policy in one VLAN. These read operations do not enable or repair a feature.
Apply a consistent template to every user port. DHCP snooping is the foundation for DAI and IP Source Guard. 802.1X gives identity-based access; MAB covers devices without a supplicant. Monitor mode first, then enforce.
show port-security interface <if>— limits, violations, action.show access-session interface <if> details— 802.1X/MAB status, method, assigned VLAN or policy.show ip dhcp snoopingandshow ip arp inspection— VLANs protected.show interfaces status err-disabled— ports shut by a feature.show storm-control— storm control levels and drops.
ReferenceWhat it is2 sections · depth on demand
Direct Answer
Access Layer Security combines endpoint admission, address-claim validation and link protection. Each control protects a different boundary; use the canonical references below rather than treating one feature as a substitute for the others.
Scope and canonical references
- Port Security: Port Security — source-MAC learning, allowed counts and violation actions. A permitted MAC address is not a cryptographic user/device identity.
- DHCP Snooping: DHCP Snooping — DHCP server-message trust and learned DHCP bindings. Static hosts do not automatically acquire a dynamic binding.
- Dynamic ARP Inspection: Dynamic ARP Inspection — ARP IP/MAC validation using bindings or explicit ARP policy. Trusted ports bypass inspection; incorrect trust weakens the boundary.
- IPv6 First Hop Security: First Hop Security / IPv6 RA Guard and IPv6 RA Guard — validate Router Advertisements and related first-hop messages. IPv4 DHCP Snooping/DAI do not implement IPv6 RA protection.
- IEEE 802.1X: 802.1X under Network Access Control — supplicant, authenticator and authentication server admission. MAC Authentication Bypass is a different fallback trust model; authorization and failure policy still matter.
- MACsec: MACsec — integrity and confidentiality on a supported Layer 2 link. Link encryption does not provide end-to-end application protection or replace admission policy.
Switching → Layer 2 Security retains canonical ownership of switch forwarding and Port Security/DHCP Snooping/DAI configuration. Existing MACsec and First Hop Security identities keep their current ownership. Security → Network Access Control owns general access-control concepts; Wireless 802.1X has a distinct wireless context. No duplicate switch or wireless 802.1X Topic is created here.
ReferenceHow it works1 section · depth on demand
Technical Mechanics
Start with the host/interface/VLAN, then decide whether the problem is admission, an address claim, or protection of a link. DHCP Snooping can supply DAI with dynamic bindings; review static-host ARP policy and binding persistence before enabling enforcement. Neither a complete binding table nor an 802.1X success proves that a particular application flow is permitted.
For IPv6, distinguish RA Guard, DHCPv6 Guard and neighbor/device tracking; use the existing First Hop Security children for their individual scopes. RA Guard implementations must handle IPv6 extension-header/fragmentation evasion appropriately; RFC 7113 documents the implementation requirements. Check the switch ASIC, interface type, software release and feature restrictions instead of assuming identical support across IOS / IOS XE. MACsec support, modes and peer interoperability likewise require platform-specific validation.
ReferenceImportant terms & boundaries4 sections · depth on demand
Official Sources
Proof Boundaries
This is a curated entry point, not a new configuration owner. A binding, authenticated session or encrypted link proves only its own scope. Verify a permitted endpoint and an authorized negative case at the relevant boundary; do not generate malicious traffic on a production access network merely to follow this overview.
Common mistakes
- Port security max set too low for IP phones plus PCs.
- DHCP snooping without trusting the uplink.
In depth
Access layer security protects the switch ports where users and devices connect, because that is where most attacks on the network start: rogue devices, spoofed addresses, rogue DHCP servers and loops.
| Threat | Control |
|---|---|
| Unauthorised device | 802.1X/MAB with ISE, port security |
| Rogue DHCP server | DHCP Snooping |
| ARP spoofing | Dynamic ARP Inspection |
| IP spoofing | IP Source Guard |
| IPv6 rogue RA | RA Guard, DHCPv6 Guard |
| Accidental switch/loop | BPDU Guard, storm control |
| VLAN hopping | Disable DTP, unused native VLAN |
Enable DHCP Snooping first, because DAI and IP Source Guard depend on its binding table.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: User VLAN 20; uplink Gi1/0/48 is trusted toward the DHCP server.
ip dhcp snooping
ip dhcp snooping vlan 20
!
interface GigabitEthernet1/0/5
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet1/0/48
ip dhcp snooping trustExpected output
show port-security interface GigabitEthernet1/0/5Expected state: Port security is enabled and secure-up, with no violations.
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict
Maximum MAC Addresses : 2
Total MAC Addresses : 1
Security Violation Count : 0Forgetting ip dhcp snooping trust on the uplink blocks DHCP offers for every client in the VLAN. Illustrative authored output: field layout matches the tool, values will differ in your environment.