Your home router has one public IP address, yet every phone, laptop and TV in the house can use the internet at the same time. The trick is NAT (Network Address Translation): the router rewrites private addresses into its public address on the way out, and back again on the way in. This course explains how that works and how to set it up on a Cisco router.
Every lesson uses the same small office below. The PCs and the web server Web1 use private addresses in 192.168.10.0/24. R1 is the edge router: Gi0/0 faces the office (inside), and Gi0/1 faces the ISP (outside) with the public address 203.0.113.2/30. The server on the internet is 198.51.100.10.
Device key: PC1 (computer) · PC2 (laptop) · Web1 (server) · SW1 (switch) · R1 (NAT), ISP (router)
Lines show the example’s network connections. Thick links: uplinks/WAN, as labelled. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.
Reading the addresses
IP labels identify interfaces or destinations. Subnet labels identify networks; /n is the prefix length. A router ID (RID) identifies a routing process and need not be a reachable interface.
An IP address alone is not a URL. A web URL includes a scheme such as https://; an address on a router or printer does not imply a website.
- PC1: IP 192.168.10.11
- PC2: IP 192.168.10.12
- Web1: IP 192.168.10.50
- R1 (NAT): edge router
- ISP: IP 203.0.113.1
- Server: IP 198.51.100.10
- 1. PC1 sends a request. Its source address is private. The internet can't route it.
- 2. R1 translates it. The packet leaves with R1's public address, and R1 writes the swap in its translation table.
- 3. The reply comes back. R1 finds the entry, puts PC1's private address back, and forwards the reply inside.
Who is this for?
CCNA students and anyone who wants to know what their router does with addresses. You should know what an IP address and a subnet are (see IP Addressing), and roughly how a router forwards packets.
What's in this course
3 modules · 7 lessons · about 1 hour of reading
Module 1: NAT Basics
Why private addresses need translating, and the words Cisco uses to describe it.
Module 2: Types of NAT
Static, dynamic and PAT: how each one maps addresses, and how to set it up.
Module 3: Verify and Troubleshoot
Reading the translation table and fixing the usual NAT faults.