Menu: runbooks, process, how-to, NIS2, wireless

Wireless · top 10, item 8 · W8

Status
Draft
Last reviewed
Not yet reviewed by the author
Written

VLAN and DHCP timing on roam

A roam that lands the handheld in a different VLAN or subnet breaks its IP address. Find VLAN mismatches, DHCP behaviour during roaming, ARP and switch tables, and layer 3 roaming setups.

In plain words

Wi-Fi roaming moves the radio link. It does not by itself move the device’s IP address. If the old AP put the scanner into VLAN 120 (subnet 10.20.30.0/24) and the new AP puts it into VLAN 140, its address is now wrong. The device has to notice, ask DHCP for a new address, and every open connection of the scan app breaks. Even on the right VLAN, the network has to learn where the device is now (switch MAC tables, ARP caches), and some settings force a full DHCP exchange on every roam.

Symptoms

  • The device’s IP address changes when it crosses a certain area.
  • After a roam the radio is connected but nothing works for several seconds, then it recovers.
  • Scan app sessions break and users have to log in again, although Wi-Fi never showed “disconnected”.
  • DHCP scope for one VLAN runs out while the other is half empty.
  • Problems right at the boundary between two controllers or two buildings (W7).

How to confirm

1. Watch the IP address during a walk

On a Windows terminal, before and after crossing the area:

ipconfig /all

Source: ipconfig, Microsoft Learn

Compare IP address, gateway and “Lease Obtained”. On Android handhelds, use the Wi-Fi details screen or the MDM’s device view. A changed subnet means a VLAN change.

2. Map SSID to VLAN on every AP

For the handheld SSID, list the VLAN (or VLAN pool) on every AP group, controller interface or switch port. In distributed setups the AP’s switch port must carry the same VLAN everywhere in the roaming area. One wrongly configured port is enough.

3. Watch DHCP on the wire

Capture on the DHCP server, the relay, or the AP uplink, filtered to the device:

dhcp.hw.mac_addr == 00:00:5e:00:53:2a

Source: DHCP display filter fields, Wireshark

A fresh discover/offer/request/ack after a roam, or a NAK, tells you the network treated the roam as a new arrival.

4. Check “DHCP required” style settings

Some controllers can force every client to complete DHCP before passing traffic after it associates (Cisco calls it “DHCP Address Assignment Required”). Cisco’s best-practice guide says never to enable it for WLANs with voice or video, and notes that Android and some Linux clients renew DHCP at half the lease time rather than on roaming, which can collide with it.

How to fix

  1. One VLAN (or one consistent VLAN pool) per roaming SSID across the whole roaming area. Check every AP group and switch port.
  2. If you need different subnets in different areas, use your platform’s layer 3 roaming (mobility anchoring, tunnelling to a gateway) so the device keeps its address. Check fast-roam compatibility: Meraki, for example, documents that 802.11r is not available with its distributed layer 3 roaming.
  3. Turn off forced DHCP-on-association for handheld SSIDs unless you have a specific reason and know your devices handle it.
  4. Same DHCP servers for the SSID’s VLAN on all controllers (Cisco calls this out for mobility groups), and make sure scopes are big enough for all devices plus visitors.
  5. Sensible lease times. RFC 2131 has clients start renewing at T1, by default half the lease. Very short leases mean many renewals during a shift; very long leases on a busy scope exhaust it. Pick a lease that covers at least a shift.
  6. Device side: Zebra devices have a Subnet Roam setting that lets the device change its IP when the same SSID serves different subnets. It is off by default; Zebra’s guidance is to use it only when the network is built that way. Gratuitous ARP (also a Zebra setting) helps the network learn the device’s new location quickly.

Tips and tricks

  • VLAN pools hash clients onto VLANs. If two controllers hash differently, a roam between them changes VLAN. Check the pool behaviour across the roam domain.
  • Static IPs on scanners make VLAN mistakes very visible (the device just stops working). Prefer DHCP reservations if you need fixed addresses.
  • Check the switch side too. A missing VLAN on one AP’s trunk port looks exactly like a Wi-Fi problem.

Client side vs infrastructure side

Client side Infrastructure side
IP before and after the roam SSID-to-VLAN mapping per AP, AP group and switch port
Subnet Roam / Gratuitous ARP settings DHCP servers, scopes, lease times, relays
App behaviour on a short network gap DHCP-required settings, layer 3 roaming / anchoring

Traps

  • “Just make the scope bigger” when the real problem is clients changing VLAN on every roam.
  • Fixing it with a reboot. A reboot gives the device a fresh address and hides the VLAN mismatch until the next walk.

Undo

Note the old VLAN and DHCP settings per AP group and port before you change them; changes to the SSID’s VLAN make clients reconnect.

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close