Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Layer 2 Security Protocol Reference

Direct answer

These features validate ARP and source addresses against trusted bindings and limit broadcast storms at the access edge.

First 30 seconds

1. Layer 2 security: port security, DHCP snooping, DAI, IP source guard, storm control, BPDU guard.

2. Snooping binding table feeds DAI and IPSG.

3. Trust uplinks only.

4. Watch drops and violations.

5. Enable on access layer.

Operational verification

untrusted port → snooping/DAI/port security checks → permit/drop

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Enabling DAI or IP Source Guard before DHCP snooping bindings exist.
  • Forgetting trusted ports toward routers and DHCP servers.
  • Storm control thresholds too low for normal broadcast traffic.
Platform / version applicability
Protocol behaviour per standard; Cisco IOS / IOS XE command examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol behaviour per standard; Cisco IOS / IOS XE command examples.
Key commandshow ip arp inspection statistics
Scope / prerequisiteUse them when legitimate hosts are dropped by DAI or IP Source Guard, or when storm control blocks traffic.
What next?1 suggested next step
Child topics (this level)3
Evidence0
On this pageJump to a specific section
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key checks
  • show port-security — port security
  • show ip dhcp snooping binding — DHCP snooping
  • show ip arp inspection statistics — DAI
ReferenceWhat it is1 section · depth on demand
ReferenceImportant terms & boundaries2 sections · depth on demand

Where to look

QuestionReference
Why are ARP packets dropped?*Dynamic ARP Inspection Deep Reference*
Why can a host not send after an IP change?*IP Source Guard Deep Reference*
Why is broadcast traffic being dropped?*Storm Control Deep Reference*

Layer 2 security protects the access layer, where users and devices connect directly to the network. Several attacks — rogue DHCP servers, ARP spoofing, MAC flooding, unauthorised switches — work only inside a VLAN, so they must be stopped on the switch port itself. Each feature in the table targets one specific attack, and several of them build on DHCP snooping's record of which address belongs to which port.

Layer 2 security quick reference:

FeatureProtects against
Port securityMAC flooding, unauthorised devices
DHCP snoopingRogue DHCP servers
Dynamic ARP InspectionARP spoofing
IP Source GuardIP spoofing
BPDU Guard / Root GuardSTP manipulation
Storm controlBroadcast storms
802.1X/MABUnauthenticated access

Enable DHCP snooping before DAI and IP Source Guard — both depend on its binding table.

In depth

Layer 2 security protects switched networks against attacks that exploit trust on the local link: rogue DHCP servers, ARP spoofing, MAC flooding, VLAN hopping and spanning-tree manipulation. The controls sit on access switches, close to the attacker.

AttackCountermeasure
MAC floodingPort security
Rogue DHCPDHCP Snooping
ARP spoofingDynamic ARP Inspection
VLAN hoppingDisable DTP, dedicated native VLAN
STP manipulationBPDU Guard, Root Guard
Unauthorised device802.1X / MAB

These features build on each other, so enable them in order: DHCP Snooping, then DAI and IP Source Guard.

ReferenceConfiguration & state1 section · depth on demand

Key commands

show ip arp inspection statistics
show ip verify source
show storm-control
show ip dhcp snooping binding
Confirmation

Confirm action

Continue?