Practice library / Networking hands-on
Lab · Medium · 55 minutesFree account
NAT & PAT Lab
Configure static NAT, dynamic NAT, and PAT overload.
On this page 8 sections
Before you start
Network Address Translation lets many private hosts share a small set of public IPv4 addresses. Every home router and every corporate internet edge runs some form of it. A misread translation table also hides the real source of an attack from the first analyst that reads the firewall log. Here you configure static NAT, dynamic NAT and PAT overload on Cisco IOS and verify each translation on the router itself.
Lab Objectives
- Understand why NAT exists and how it conserves IPv4 addresses
- Configure Static NAT for 1-to-1 IP mapping
- Configure Dynamic NAT with an IP address pool
- Configure PAT so many private IPs share one public IP
- Verify NAT translations and troubleshoot common issues
NAT in plain English: Your home router has one public IP but many devices. NAT lets all those devices share that one IP — it keeps track of who sent what and delivers replies to the right device. PAT does this using port numbers to tell them apart.
Step 1: NAT Overview
| NAT Type | Mapping | Use Case |
|---|---|---|
| Static NAT | 1 private IP → 1 public IP (permanent) | Servers that need consistent public IPs |
| Dynamic NAT | Pool of private IPs → pool of public IPs | Temporary, first-come-first-served |
| PAT / NAT Overload | Many private IPs → 1 public IP (uses ports) | Home/office internet (most common) |
# NAT terminology:
# Inside Local → private IP of internal device (e.g. 192.168.1.10)
# Inside Global → public IP seen by internet (e.g. 203.0.113.5)
# Outside Local → IP of external host as seen from inside
# Outside Global → actual IP of external host
# Inside vs Outside interfaces:
# Inside → connected to internal network (LAN side)
# Outside → connected to internet (WAN side)Step 2: Static NAT
# Mark interfaces as inside/outside
interface GigabitEthernet0/0
ip nat inside
interface GigabitEthernet0/1
ip nat outside
# Create static mapping: private → public
ip nat inside source static 192.168.1.10 203.0.113.10
ip nat inside source static 192.168.1.20 203.0.113.20
# Now:
# 192.168.1.10 always appears as 203.0.113.10 on the internet
# Inbound traffic to 203.0.113.10 → forwarded to 192.168.1.10Sign in to continue
6 more sections are for signed-in members. It is free: sign in with Google.
Related
This lab is extra practice for the course Networking hands-on. Do the lessons first.Open the course