WE CODE NOW
  • Home 
  • Blog 
  • Guides 
Guides
  1. Home
  2. Guides
  3. Networking
  4. Network Address Translation (NAT)

Network Address Translation (NAT)

Posted on June 1, 2024  (Last modified on June 26, 2024) • 1 min read • 164 words
Networking
 
NAT
 
Configuration
 
Management
 
Networking
 
NAT
 
Configuration
 
Management
 
Share via
WE CODE NOW
Link copied to clipboard

Understand Network Address Translation (NAT), including how to configure NAT on a router and its importance in network management.

On this page
  • Understanding NAT
    • Types of NAT
  • Configuring NAT
    • Configuring Static NAT
    • Configuring PAT

Network Address Translation (NAT)  

Understanding NAT  

NAT translates private IP addresses to a public IP address for accessing the internet. This allows multiple devices on a local network to share a single public IP address.

Types of NAT  

  • Static NAT: One-to-one mapping between local and global addresses.
  • Dynamic NAT: Many-to-many mapping between local and global addresses.
  • PAT (Port Address Translation): Many-to-one mapping using ports.

Configuring NAT  

Configuring Static NAT  

Static NAT is used for one-to-one mapping between a local IP address and a public IP address.

# Example: Configuring Static NAT
ip nat inside source static 192.168.1.10 203.0.113.10
interface GigabitEthernet0/0
 ip nat inside
interface GigabitEthernet0/1
 ip nat outside

Configuring PAT  

PAT allows multiple devices on a local network to share a single public IP address by using different port numbers.

# Example: Configuring PAT
ip nat inside source list 1 interface GigabitEthernet0/1 overload
access-list 1 permit 192.168.1.0 0.0.0.255
interface GigabitEthernet0/0
 ip nat inside
interface GigabitEthernet0/1
 ip nat outside
 Wireless Network Configuration and Security
Quality of Service (QoS) in Networking 
On this page:
  • Understanding NAT
    • Types of NAT
  • Configuring NAT
    • Configuring Static NAT
    • Configuring PAT
Copyright © 2025 WE CODE NOW All rights reserved.
WE CODE NOW
Code copied to clipboard