<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DHCP | Ahmed Portfolio</title><link>https://ahmedhanout.pages.dev/tags/dhcp/</link><atom:link href="https://ahmedhanout.pages.dev/tags/dhcp/index.xml" rel="self" type="application/rss+xml"/><description>DHCP</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 03 Aug 2026 00:00:00 +0000</lastBuildDate><image><url>https://ahmedhanout.pages.dev/media/icon_hu_1061dd1a5aa4abd1.png</url><title>DHCP</title><link>https://ahmedhanout.pages.dev/tags/dhcp/</link></image><item><title>When reset doesn't ... reset?</title><link>https://ahmedhanout.pages.dev/blog/when-reset-doesnt-...-reset/</link><pubDate>Mon, 03 Aug 2026 00:00:00 +0000</pubDate><guid>https://ahmedhanout.pages.dev/blog/when-reset-doesnt-...-reset/</guid><description>&lt;p&gt;A friend asked me to change his WiFi password — too many neighbors had it, and he suspected they were leeching off him. Simple enough, except he&amp;rsquo;d forgotten the router&amp;rsquo;s admin login. No problem, I thought. Factory reset, use the default credentials printed on the sticker, done in two minutes.&lt;/p&gt;
&lt;p&gt;It was not done in two minutes.&lt;/p&gt;
&lt;h2 id="attempt-one-reset-that-wasnt"&gt;Attempt One: Reset That Wasn&amp;rsquo;t&lt;/h2&gt;
&lt;p&gt;I held the reset pinhole until all the lights on the router blinked off, let go, and waited for it to come back up. Once it did, I tried the default credentials from the sticker.&lt;/p&gt;
&lt;p&gt;They didn&amp;rsquo;t work.&lt;/p&gt;
&lt;p&gt;Weirder — the PC plugged directly into the router via LAN cable had no internet either. Not WiFi, not wired, nothing. That&amp;rsquo;s the part that actually stumped me for a bit, because a dead WiFi password is one thing, but a wired PC losing connectivity too meant something deeper was off.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what I didn&amp;rsquo;t realize at the time: &lt;strong&gt;holding the reset button until the lights go out just means the router rebooted&lt;/strong&gt; — it doesn&amp;rsquo;t confirm a factory reset actually happened. Most consumer routers need the button held for a specific duration (often 10+ seconds, sometimes longer) before they actually wipe the NVRAM config. A shorter hold can just power-cycle the device instead of resetting it.&lt;/p&gt;
&lt;p&gt;So I wasn&amp;rsquo;t logging into a fresh, default router at all. I was logging into the &lt;em&gt;exact same&lt;/em&gt; router, with my friend&amp;rsquo;s forgotten custom password still fully intact. The default creds never had a chance of working.&lt;/p&gt;
&lt;h2 id="attempt-two-actually-waiting"&gt;Attempt Two: Actually Waiting&lt;/h2&gt;
&lt;p&gt;Second try, I held the button for a genuinely long time — well past the point where the lights went out — and then just&amp;hellip; waited. Didn&amp;rsquo;t touch anything.&lt;/p&gt;
&lt;p&gt;A minute or two later, a YouTube tab that had been sitting open the whole time suddenly started playing audio on its own. Nobody clicked anything. The network had just quietly come back to life in the background.&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s DHCP doing its job. Here&amp;rsquo;s the sequence that was actually happening, invisibly, the whole time:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The reset genuinely wiped the config this time&lt;/strong&gt;, restoring the router to factory defaults — which is why the sticker credentials finally worked.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DHCP service takes time to come back online&lt;/strong&gt; after a real reset — not just the interface, but the actual service that hands out IP addresses.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The PC&amp;rsquo;s DHCP client was sitting there requesting a lease&lt;/strong&gt; the entire time and getting nothing back, because the router&amp;rsquo;s DHCP server wasn&amp;rsquo;t up yet to respond.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The moment the DHCP server came online&lt;/strong&gt;, it answered the PC&amp;rsquo;s next DHCP request, handed out a lease, and the PC silently picked up a valid IP — no reconnect, no manual renewal, nothing. The song just started because the network stack quietly finished its job in the background.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="the-actual-lesson"&gt;The Actual Lesson&lt;/h2&gt;
&lt;p&gt;The mistake wasn&amp;rsquo;t router weirdness — it was assuming a short button hold equals a full reset, when the first attempt was really just a reboot. And even after a genuine reset, DHCP lease negotiation and service startup aren&amp;rsquo;t instant; they take real time that&amp;rsquo;s easy to mistake for &amp;ldquo;something&amp;rsquo;s broken&amp;rdquo; when really it&amp;rsquo;s just &amp;ldquo;something&amp;rsquo;s still booting.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Small, dumb, easily fixed moment — but it&amp;rsquo;s the kind of thing that sticks with you a lot better than reading &amp;ldquo;DHCP assigns IP addresses&amp;rdquo; in a textbook ever did.&lt;/p&gt;</description></item></channel></rss>