Networking Lab • Interactive Trainer

Network Address Translation (NAT) Explorer

Learn how Static NAT, Dynamic NAT, and Port NAT (PAT) work, simulate packet translations, and complete the 5-question quiz for classroom credit.

Lab Progress
1 / 4

Why Does NAT Exist?

The IPv4 address space only has about 4.3 billion addresses, which quickly ran out as the internet grew. To solve this, networks use Private IPv4 Addresses (RFC 1918) internally (such as 192.168.x.x, 10.x.x.x, and 172.16.x.x–172.31.x.x).

However, private IP addresses cannot be routed on the public internet. Internet routers immediately drop packets with private source or destination IPs. Network Address Translation (NAT) runs on your border router or firewall to rewrite private IP addresses into routable public IP addresses as packets leave your network—and translates replies back to the right internal device when they return.

Interactive NAT Address Terminology

Click each term below to see how a NAT router classifies addresses during a connection from an office PC to a public web server:

Inside Local Address (192.168.1.10)

The private IPv4 address assigned to a host on the inside (private) network before NAT translation occurs. Only devices inside your local LAN see this address.

1-to-1 Permanent Static NAT

Static NAT

Manually maps one specific private IP to one dedicated public IP permanently.

  • Direction: Allows inbound & outbound initiation
  • Best for: Internal web, mail, or VPN servers that outside users must reach
  • Drawback: Consumes 1 public IP per server even when idle
1-to-1 Pool Lease Dynamic NAT

Dynamic NAT

Dynamically assigns an available public IP from a pre-configured pool on a first-come, first-served basis.

  • Direction: Outbound-initiated sessions
  • Best for: Organizations needing temporary dedicated 1:1 public IPs per active host
  • Drawback: If all pool IPs are in use, additional hosts are blocked (pool exhaustion)
Many-to-1 + Ports Port NAT / PAT

Port NAT (PAT / Overload)

Maps hundreds or thousands of private IPs to a single public IP by tracking unique TCP/UDP source port numbers.

  • Direction: Outbound-initiated (unless port-forwarded)
  • Best for: Homes, schools, and enterprises conserving public IPv4 space
  • Key feature: Rewrites source port on collision so every session is unique