CCNA Lab: Complete NAT Lab

Writeups for https://www.pingmynetwork.com

Topology Overview

Device Role Model
SW1 Layer 2 switch WS-C2960-24TT-L
PC1 / PC2 / PC3 Inside hosts PC
R1 Edge router (NAT device) ISR4331
ISP Service provider router ISR4331
Web-Server Public server Server

Physical Connectivity

PC1 (Fa0) -- Fa0/1 \
PC2 (Fa0) -- Fa0/2  >-- SW1 -- Gi0/1 -- Gi0/0 R1 Gi0/1 -- Gi0/0 ISP Gi0/1 -- Fa0 Web-Server
PC3 (Fa0) -- Fa0/3 /

Addressing Plan

Segment Network Notes
Inside LAN 192.168.1.0/24 R1 Gi0/0 = 192.168.1.1 (default gateway for PCs)
WAN transit 203.0.113.0/30 R1 Gi0/1 = 203.0.113.1, ISP Gi0/0 = 203.0.113.2
Server LAN 198.51.100.0/24 ISP Gi0/1 = 198.51.100.1, Web-Server = 198.51.100.10

Host details:

  • PC1: 192.168.1.10/24, GW 192.168.1.1
  • PC2: 192.168.1.11/24, GW 192.168.1.1
  • PC3: 192.168.1.12/24, GW 192.168.1.1
  • Web-Server: 198.51.100.10/24, GW 198.51.100.1

Note: The diagram label reads 195.51.100.0/24, but all actual device configs use 198.51.100.0/24. The label is a typo — use 198.51.100.0/24.

Current Configuration State

R1 (Edge Router)

interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet0/1
 ip address 203.0.113.1 255.255.255.252
!
ip route 0.0.0.0 0.0.0.0 203.0.113.2
  • Inside and outside interfaces have IPs
  • Default route toward ISP
  • No NAT configuration whatsoever
  • No inside/outside interface designation (ip nat inside / ip nat outside)
  • No ACL to define interesting traffic
  • No NAT pool, static mapping, or overload statement

ISP Router

interface GigabitEthernet0/0
 ip address 203.0.113.2 255.255.255.252
!
interface GigabitEthernet0/1
 ip address 198.51.100.1 255.255.255.0
!
ip route 203.0.113.0 255.255.255.0 203.0.113.1
  • Both interfaces addressed
  • Static route back toward the 203.0.113.0/30 transit link
  • No default route or route to 192.168.1.0/24 — ISP does not know the private network (expected; NAT will hide it)

SW1

  • Default config, all ports in VLAN 1
  • Gi0/1 is up/up toward R1; access ports came up when PCs connected
  • No VLANs, no inter-VLAN routing needed (flat Layer 2 domain)

PCs / Web-Server

  • All statically addressed with correct gateways
  • No configs to apply

What the Lab Requires

This is a "complete NAT lab" — the start file provides only base IP connectivity. You must implement NAT on R1. Typical CCNA objectives for this topology:

1. Static NAT (one-to-one)

Map an inside host to a fixed public address — e.g., publish PC1 or an internal server.

ip nat inside source static 192.168.1.10 203.0.113.5

2. Dynamic NAT (pool-based)

Translate inside hosts to a pool of public addresses.

ip nat pool PUBLIC_POOL 203.0.113.5 203.0.113.6 netmask 255.255.255.248
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 pool PUBLIC_POOL

3. NAT with Overload (PAT)

Allow all inside hosts to share R1's outside interface address — the most common real-world scenario.

access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface GigabitEthernet0/1 overload

4. Port Forwarding (if a static PAT is needed)

Expose an internal service on a specific port:

ip nat inside source static tcp 192.168.1.10 80 203.0.113.1 8080

5. Interface Designation (required for any NAT to work)

interface GigabitEthernet0/0
 ip nat inside
!
interface GigabitEthernet0/1
 ip nat outside

Verification Commands

show ip nat translations
show ip nat statistics
debug ip nat          ! use cautiously in production
show ip interface brief
show ip route

From a PC, test with ping 198.51.100.10. Before NAT, the ping fails because ISP has no route to 192.168.1.0/24 and R1 has no translation. After NAT overload, the source appears as 203.0.113.1 and replies return correctly.

Key Troubleshooting Points

  1. NAT not translating: Check ip nat inside / ip nat outside on the correct interfaces — a missing designation is the #1 cause.
  2. ACL mismatch: The source list ACL must match the inside subnet; verify with show access-lists.
  3. No return path: ISP needs a route to the translated address (203.0.113.x). It already has 203.0.113.0/30 directly connected, so PAT to the interface IP works. Pool addresses must be routed by ISP.
  4. Overlapping networks: Ensure the NAT pool does not overlap with 192.168.1.0/24 or 203.0.113.0/30.
  5. ip nat inside source vs ip nat inside destination: For outbound internet access, use source.

Suggested Lab Flow

  1. Verify baseline connectivity: PC to R1 (ping 192.168.1.1), R1 to ISP (ping 203.0.113.2).
  2. Confirm PC to Web-Server fails (no NAT, no return route).
  3. Configure NAT overload on R1 with an ACL permitting 192.168.1.0/24.
  4. Apply ip nat inside / ip nat outside.
  5. Re-test PC to Web-Server — should succeed.
  6. Run show ip nat translations to observe the translation entries.
  7. Optional: add a static NAT entry for a "published" internal server and verify from the ISP side.
  8. Save configs with write memory on R1, ISP, and SW1.

Summary

The start file is a clean, correctly-addressed three-segment topology with full Layer 3 reachability up to the edge, but zero NAT configuration. The lab's purpose is to have you design and apply static NAT, dynamic NAT, and/or PAT overload on R1, then verify translations and end-to-end reachability to the public web server. The only pre-existing "gotcha" is the mislabeled 195.51.100.0/24 note — the real network is 198.51.100.0/24.