<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NAT on Andy Als</title><link>https://andyals.com/tags/nat/</link><description>Recent content in NAT on Andy Als</description><generator>Hugo</generator><language>en-us</language><copyright>Andy Als</copyright><lastBuildDate>Mon, 29 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://andyals.com/tags/nat/index.xml" rel="self" type="application/rss+xml"/><item><title>Lab — Quick NAT &amp; DHCP refresher</title><link>https://andyals.com/posts/2026/06/lab-quick-nat-dhcp-refresher/</link><pubDate>Mon, 29 Jun 2026 00:00:00 +0000</pubDate><guid>https://andyals.com/posts/2026/06/lab-quick-nat-dhcp-refresher/</guid><description>&lt;p&gt;I thought to myself, it had been a couple of weeks since setting up NAT and DHCP in a lab. Therefore, I decided to do a quick refresher to ensure I still remembered the process and commands. As it turns out, I still remembered them well, and this lab only took about 10 minutes to get going.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://andyals.com/img/posts/lab-quick-nat-and-dhcp.png" alt="NAT and DHCP refresher Lab"&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="whats-configured"&gt;What&amp;rsquo;s Configured&lt;/h2&gt;
&lt;p&gt;Firstly, I configured the IP link between Router 0 and Router 1 (Router 1 is simulating the internet). Then I added a loopback interface to Router 1 (internet/ISP router) with the IP address of 1.1.1.1 and set the default route to go back to Router 0.
A note on setting the default route: this is a trap that caught me a few times in the past, and it will probably catch me again. When simulating an ISP this way, we need to set the default route to point back to the edge router of the network; otherwise, return traffic from the ISP router doesn&amp;rsquo;t know how to get back to the LAN.&lt;/p&gt;</description></item></channel></rss>