Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Practice library / Networking hands-on

Lab · Medium · 55 minutesFree account

NAT & PAT Lab

Configure static NAT, dynamic NAT, and PAT overload.

  • nat
  • pat
  • cisco-ios
  • packet-tracer
  • ccna
On this page 8 sections
  1. 1NAT Overview
  2. 2Static NAT
  3. Locked: Dynamic NAT
  4. Locked: PAT (NAT Overload)
  5. Locked: Verify NAT
  6. Locked: Port Forwarding (Static PAT)
  7. Locked: Troubleshooting NAT
  8. Locked: NAT/PAT Cheat Sheet

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 TypeMappingUse Case
Static NAT1 private IP → 1 public IP (permanent)Servers that need consistent public IPs
Dynamic NATPool of private IPs → pool of public IPsTemporary, first-come-first-served
PAT / NAT OverloadMany 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.10

Sign 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