🌐 NAT (Network Address Translation)
🌐 NAT (Network Address Translation)
🧠 Top 5 Key Points
-
Translates Private IPs to Public IPs:
NAT converts internal (private) IP addresses into a single or multiple public IPs so that devices inside a LAN can access the Internet. -
Conserves Public IP Addresses:
NAT allows multiple internal hosts to share one public IP, saving global address space. -
Improves Security:
Internal IPs remain hidden from the outside world, reducing attack exposure. -
Types of NAT:
-
Static NAT: One-to-one mapping (internal ↔ public).
-
Dynamic NAT: Many-to-many mapping (pool of public IPs).
-
PAT (NAT Overload): Many-to-one mapping (most common).
-
-
Configured on Routers:
NAT runs on routers at the boundary between private and public networks, translating IPs for outbound/inbound traffic.
⚙️ Technical Summary
| Feature | Description |
|---|---|
| OSI Layer | Network Layer (Layer 3) |
| Main Function | Translate IP addresses |
| Types | Static, Dynamic, PAT |
| Common Command | ip nat inside / ip nat outside |
| Use Case | LAN-to-Internet communication |
🧰 Packet Tracer Lab – NAT Configuration
🎯 Goal:
Use PAT (NAT Overload) to allow multiple internal hosts to share one public IP for Internet access.
🖥️ Network Topology
IP Plan
| Device | Interface | IP Address | Description |
|---|---|---|---|
| Router (R1) | G0/0 | 192.168.10.1 | Inside (LAN) |
| G0/1 | 200.0.0.1 | Outside (Public) | |
| PC1 | NIC | 192.168.10.10 | Inside Host |
| PC2 | NIC | 192.168.10.20 | Inside Host |
| ISP Router | G0/0 | 200.0.0.2 | Public (Next Hop) |
🪜 Step-by-Step Configuration
🔹 1. Configure Router Interfaces
🔹 2. Create Access List for Inside Network
🔹 3. Configure NAT Overload
🔹 4. Configure Default Route
(To reach the internet via ISP)
🔹 5. Verify NAT Configuration
💡 Testing NAT
-
On PC1 and PC2, set:
-
Ping from PC1 or PC2 → 200.0.0.2
✅ Should succeed. -
On Router (R1), run:
You’ll see private IPs mapped to 200.0.0.1 (public IP).
🧠 Learning Summary
| Concept | Description |
|---|---|
| NAT Function | Translates private IPs to public |
| PAT | Many-to-one mapping (most used) |
| Inside Interface | Connected to LAN |
| Outside Interface | Connected to Internet |
| Verification | show ip nat translations |
💬 Teaching Tip
“NAT is like a receptionist — many employees (private IPs) talk to outsiders (public IPs) through one phone number (public IP), but the receptionist knows who’s who internally.”
Ethical Hacking Classes in Pune
ReplyDeleteEthical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune
Ethical Hacking Classes in Pune