This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

DHCP and relay

asked Sep 16 '21

I have 2 computers running WireShark: The DHCP server itself (VLAN 10) and a computer in the client VLAN 99. On the DHCP server, i can see the full DORA exchange, however on the computer in the client VLAN, I only see the Discover and Request traffic. Shouldn't i see DORA on both computers running wireshark?

Network environment are Cisco 2960 edge switches and 3850 L3 switches running ios 12.2.

Comments

Do you have a filter in place? Some dhcp traffic can be broadcast, so that needs to be accounted for in a display filter.

User 50272 ( Sep 16 '21 )

Are you running Wireshark on the DHCP client, or is this another host?

If you run Wireshark on the DHCP client: Does the client receive the IP address? In other words: Are the packets delivered to the IP stack, but won't show up in our beloved tool? Or are they dropped at another spot on it's way in?

User 548 ( Sep 18 '21 )

1 Answer

0

answered Nov 12 '26

You should not expect a full DORA on both machines, and that is usually normal.

DISCOVER and REQUEST from the client are typically broadcasts (UDP 67/68, Ethernet ff:ff:ff:ff:ff:ff), so any host on VLAN 99 can see them. When a relay (ip helper-address) is in the path, the server does not broadcast the OFFER and ACK onto VLAN 99. It unicasts them to the relay's address in the giaddr / "Relay agent IP address" field, and the relay then forwards them to the client. If the DHCP broadcast flag is 0, that last hop is usually a unicast to the client's MAC. A switch will not send those unicasts to a third PC on VLAN 99, so a capture there often shows only Discover and Request. The capture on the DHCP server (VLAN 10) sees the relayed conversation, which is why it looks like a complete DORA.

Useful display filters (Wireshark 3.x/4.x):

dhcp
udp.port == 67 or udp.port == 68
dhcp.option.dhcp == 1   (DISCOVER)
dhcp.option.dhcp == 2   (OFFER)
dhcp.option.dhcp == 3   (REQUEST)
dhcp.option.dhcp == 5   (ACK)
dhcp.option.dhcp == 6   (NAK)

A capture filter if you want to limit what is written to disk: port 67 or port 68.

What to check in the packets:

  • Whether the VLAN 99 capture is on the actual DHCP client or on another host (that changes everything).
  • The Broadcast flag and the Relay agent IP address (giaddr). giaddr should be the 3850 SVI / helper address for VLAN 99, not 0.0.0.0, on the packets the server sees.
  • Option 82, if the relay inserts it.
  • Whether the client actually ends up with a lease. If it does, Offer/Ack were delivered to that client even if the third PC never saw them.

To see the full four-way handshake, capture on the client itself, or SPAN/monitor the client port or the relay interface toward VLAN 99. The wiki's capture-setup page is the right reference: https://wiki.wireshark.org/CaptureSetup

If you want a known client on the VLAN 99 machine so that host is the client and can write the whole exchange to a pcapng, one option is PathProbe (https://getpathprobe.com). Disclosure: I work on PathProbe. It is a CLI that simulates DHCP clients, each with its own MAC, optionally with an 802.1Q tag, against a lab DHCP server. Only use it on a network you are authorized to test; dhcp run requires --authorized. A starting point, with capture enabled:

sudo pathprobe --capture vlan99-dora.pcapng dhcp run --iface eth0 --count 5 --authorized

Then open the pcapng in Wireshark and apply dhcp. If that capture, taken on the same machine that is the client, still has no Offer/Ack, the problem is between the relay and the client (or the server never offered). If it is complete there but missing on a third host in VLAN 99, it was just unicast forwarding.

cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.