
If you're not familiar with how DHCP works, see Static and dynamic IP address configurations: DHCP deployment. These broadcasts use ports 67/udp and 68/udp. DHCP ACKNOWLEDGE (ACK): Server broadcasts confirming the leased IP configuration.DHCP REQUEST: Client broadcasts to formally ask for the offered IP configuration.DHCP OFFER: Server broadcasts to offer an IP configuration.DHCP DISCOVER: Client broadcasts that it needs to lease an IP configuration from a DHCP server.Not what the network should do, but what it is doing.ĭHCP uses a four-step process to enable clients to lease an IP address configuration: An advantage of scanning and sniffing tools is that they display exactly what is happening on the network. There are many ways to troubleshoot this, including the ones I'll explore in this article: network scanning and packet sniffing tools. Linux system administration skills assessment.A guide to installing applications on Linux.Download RHEL 9 at no charge through the Red Hat Developer program.This will tell what was received from the DHCP server. You will see client MAC address, Your (client) IP address, gateway IP address as Router (Option 3), and subnet mask as Option 1. View the packet details (in Wireshark this is accomplished by going to View -> Packet Details. Highlight either a DHCP Offer packet or a DHCP ACK packet. This will only show DHCP packets out of the entire packet capture.ĥ. Within the packet capture use "bootp" as the filter. Once the device receives an IP, stop the packet capture.Ĥ. Restart the WiFi service on the smartphone or whatever client you are testing.ģ. Note that, the tool or the AP should be on the same channel as the network you are analyzing.Ģ. You can use Ruckus APs if you don't have a 3rd party tool. Start a wireless packet capture using your favorite tool. This is an important detail because a wrong gateway can cause Internet access to fail. QuestionHow do I find out the gateway IP by looking at the DHCP packets? Customer EnvironmentWiFi network Root CauseNot all smartphones show IP address of the gateway when you go to WiFi setting. This method involves taking a packet capture and expanding DHCP options in the corresponding packets. This article explains one of the methods to find subnet mask and gateway IP if you would like to know what was received. SummarySome of the smartphones will only show received IP address under WiFi settings.
