NAT (Network Address Translation)
NAT is a process that translates private IP addresses into public IP addresses to enable communication with external networks like the internet. NAT Network Address Translation practical in cisco packet tracer
This is used in:
- Home WiFi routers
- Offices
- Enterprises
- ISPs
- Firewalls
Without NAT:
๐ Private IP devices cannot access the internet.
๐ฏ Why NAT Exists
Private IPs:
- 192.168.x.x
- 10.x.x.x
- 172.16.x.x
❌ Cannot work directly on internet.
So router does:
Private IP → Public IP
๐ฅ What You Will Learn
- ✔ Inside vs Outside interfaces
- ✔ Private/Public IP
- ✔ NAT translation
- ✔ Internet simulation
- ✔ PAT overload
- ✔ Enterprise internet access
๐งช Practical Topology
In Cisco Packet Tracer create:
PC0 ---- Switch ---- Router ---- Server
๐ IP Addressing
๐น Internal LAN
๐น External Network
๐ Wiring
PC → Switch
Use:
✅ Copper Straight-Through
Switch → Router
Use:
✅ Copper Straight-Through
Router → Server
Use:
✅ Copper Straight-Through
๐ฅ Physical Port Connections
Like -
⚙️ Step 1: Configure Router Interfaces
enable configure terminal interface g0/0 ip address 192.168.1.1 255.255.255.0 ip nat inside no shutdown interface g0/1 ip address 200.1.1.1 255.255.255.0 ip nat outside no shutdown
๐ง Important Concept
⚙️ Step 2: Configure PC
⚙️ Step 3: Configure Server
๐ฅ Step 4: Create Access List
access-list 1 permit 192.168.1.0 0.0.0.255
๐ง Why ACL?
Tells router:
๐ Which internal IPs should be translated.
๐ฅ Step 5: Enable NAT Overload (PAT)
ip nat inside source list 1 interface g0/1 overload
๐ง Meaning
๐ฏ Full NAT Configuration
enable configure terminal interface g0/0 ip address 192.168.1.1 255.255.255.0 ip nat inside no shutdown interface g0/1 ip address 200.1.1.1 255.255.255.0 ip nat outside no shutdown access-list 1 permit 192.168.1.0 0.0.0.255 ip nat inside source list 1 interface g0/1 overload
๐งช Step 6: Test Connectivity
From PC0:
ping 200.1.1.2
✔ Success
๐ What Happens Internally
192.168.1.10 ↓ Router translates ↓ 200.1.1.1 ↓ Server
๐ฅ Verify NAT Translation
On router:
show ip nat translations
You’ll see:
Inside local → Inside global
๐ฅ Most Important Interview Questions
❓ Difference Between NAT and PAT?
❓ What is Overload?
PAT (Port Address Translation)
❓ Why NAT Important?
Conserves public IPv4 addresses.
❓ What command verifies NAT?
show ip nat translations
๐ฅ Common Mistakes
๐ฏ What You Learned
- ✔ NAT basics
- ✔ Private/Public IP
- ✔ PAT overload
- ✔ ACL for NAT
- ✔ Enterprise internet logic












0 comments:
Post a Comment
For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.