Tutorials · Security

How to Stop Rogue DHCP Servers and ARP Spoofing

Protect users from fake gateways and man-in-the-middle attacks with DHCP snooping and dynamic ARP inspection.

Advanced12 min5 steps

Before you start

  • Managed switches with DHCP snooping support (check the datasheet)

Step by step

  1. Enable DHCP snooping per VLAN

    ip dhcp snooping
    ip dhcp snooping vlan 10,40
    
  2. Trust the real DHCP path

    Mark uplinks towards the legitimate DHCP server as trusted; all other ports are untrusted.

    interface tengigabitEthernet 0/1
     ip dhcp snooping trust
    
  3. Enable dynamic ARP inspection

    The switch drops ARP replies that do not match the DHCP binding table.

    ip arp inspection vlan 10,40
    
  4. Handle static devices

    Add static bindings or ARP ACLs for servers and printers with fixed IPs.

  5. Verify

    show ip dhcp snooping binding
    show ip arp inspection
    

Commands are generic, industry-standard examples. Exact syntax and menu names vary by model and firmware; check your device's manual on the Documentation page.

Pro tips

  • Rate-limit DHCP on untrusted ports.
  • Enable these features on guest and user VLANs first.
How to Stop Rogue DHCP Servers and ARP Spoofing | Navijin Tutorials