Hands-on tutorial

Tutorials · Troubleshooting

How to Troubleshoot Devices That Get No IP Address (DHCP Problems)

When a device shows a 169.254 address or 'no IP', find whether the cause is the cable, the VLAN, the DHCP server, a full pool or DHCP snooping, and fix it.

Beginner8 min7 steps

Before you start

  • Access to the switch and the DHCP server or gateway
  • A laptop to test on the same port and VLAN

Step by step

  1. Read the symptom

    An address starting 169.254 means the device asked for an address and got no answer. A wrong subnet means it got an answer from the wrong DHCP server.

  2. Check the link and the VLAN

    Confirm the port is up and in the right access VLAN, or that the trunk carries the VLAN to the next switch.

    show interfaces gi1/0/5 status
    show vlan brief
    
  3. Check the DHCP server

    Is the scope for this VLAN active, and are there free addresses? A full pool is common on guest networks with long lease times.

  4. Check the relay

    If the DHCP server is on another subnet, the Layer 3 switch or gateway needs a DHCP relay (helper address) on the VLAN interface.

    interface vlan 20
     ip helper-address 10.0.0.10
    
  5. Check DHCP snooping

    If DHCP snooping is enabled, the uplink towards the real DHCP server must be trusted, or offers are dropped.

    show ip dhcp snooping
    
  6. Look for a rogue DHCP server

    If devices get a wrong address, find the device answering. A home router plugged in backwards is the usual cause; DHCP snooping prevents it.

  7. Capture if needed

    Capture on the client or a mirror port: you should see Discover, Offer, Request and Ack. Where the sequence stops shows where the problem is.

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

  • Shorten lease times on busy guest networks.
  • Reserve addresses for printers and cameras rather than setting them statically in the pool.
  • Monitor pool usage and alert at 80%.