SlideShare a Scribd company logo
E m a d A l - A t o u m P a g e 1 | 2
Configuring Network Address Translation
There are three main types of NAT that can be configured on a Cisco router. Here’s what they are and how to configure them.
The example configurations will use the following topology:
A. Static NAT
When we configure static NAT we want to translate our private IP addresses to a set of public IP addresses on a 1-to-1 basis. This
means we need to have the same number of public IP addresses as the number of private IP addresses that we wish to translate. In
this example we will configure the inside local address of 192.168.1.1 to the inside global address of 194.72.164.226.
First we configure the interfaces (which is inside and outside according to our NAT needs). Fa0/0 is the inside (192.168.1.254) and
Fa0/1 is the outside (194.72.164.225):
router#conf t
router(config)#int fa0/0
router(config-if)#ip nat inside
router(config-if)#int fa0/1
router(config-if)#ip nat outside
Then we configure the static mappings:
router(config)#ip nat inside source static 192.168.1.1 194.72.164.226
B. Dynamic NAT
Dynamic NAT is similar to static NAT but it allows a pool of outside IP addresses to be used dynamically. This is good because you
don’t have to statically map an inside IP address to an outside IP address but it is bad because you can only use the number of outside
IP addresses that you have been allocated. Once the outside IP addresses are in use any additional incoming packets will not be
translated. Configuring dynamic NAT is slightly more complicated. Like static NAT we configure the interfaces first:
router#conf t
router(config)#int fa0/0
router(config-if)#ip nat inside
router(config-if)#int fa0/1
router(config-if)#ip nat outside
Then we configure the pool of outside IP addresses we want to use (we have 14 in our example). This is fairly straightforward, we
give the pool a name and assign the IP addresses to the pool, as well as the network mask:
router(config)#ip nat pool myPool 194.72.164.225 192.72.164.239 netmask 255.255.255.240
Then we configure the access list to define which addresses we want to translate:
router(config)#ip access-list 1 permit 192.168.1.0 0.0.0.255
Finally configure NAT, specifying our source list and the pool we want to use dynamically:
router(config)#ip nat inside source list 1 pool myPool
Terms:
Inside Local - The IP address of a host on the inside network (usually a private IP address).
Inside Global - The IP address of the host on the inside network as seen from the outside network (usually a public IP address).
Outside Local - The IP address of the host on the outside network (usually a public IP address).
Outside Global - The IP address of the host on the outside network as seen from the inside network (rarely used).
E m a d A l - A t o u m P a g e 2 | 2
C. Port Address Translation (NAT Overload)
Port address translation (PAT) is probably the most common type of NAT used. PAT is how most ‘home grade’ routers handle the
translation of private IP addresses to the public IP addresses used on the internet. PAT translates many inside local IP addresses to a
single inside global IP address (194.72.164.225) by altering the source port of the outbound TCP/UDP segments.
The router keeps a reference to the translations it has made and changes them back to what they were before translation on return
from the internet.
Again we configure the interfaces:
router#conf t
router(config)#int fa0/0
router(config-if)#ip nat inside
router(config-if)#int fa0/1
router(config-if)#ip nat outside
Then we configure the access list to define which addresses we want to translate:
router(config)#ip access-list 1 permit 192.168.1.0 0.0.0.255
Finally configure NAT, specifying our source list and the interface on which to overload (PAT):
router(config)#ip nat inside source list 1 interface fa0/1 overload
To see the translations in the table simply issue the following command:
router#show ip nat translations

More Related Content

PDF
SRv6 Network Programming: deployment use-cases
PPT
PPTX
The TCP/IP Stack in the Linux Kernel
PPT
Ipv4 ppt
PDF
IOS Cisco - Cheat sheets
PPT
SRv6 Network Programming: deployment use-cases
The TCP/IP Stack in the Linux Kernel
Ipv4 ppt
IOS Cisco - Cheat sheets

What's hot (20)

PPTX
A very good introduction to IPv6
PDF
Network Address Translation (NAT)
PPTX
EIGRP (Enhanced Interior Gateway Routing Protocol)
PPT
Spanning tree protocol
PPT
PDF
How BGP Works
PDF
Cisco Live! :: Introduction to Segment Routing :: BRKRST-2124 | Las Vegas 2017
PPTX
Presentation on arp protocol
PDF
netfilter and iptables
PDF
Cisco IPv6 Tutorial
PPTX
Border Gateway Protocol
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 9
PPTX
Bgp protocol
PPT
CCIE Lab - IGP Routing
PPT
Ip address and subnetting
PDF
Segment Routing Lab
PDF
CCNA Lab Guide
PPTX
Internet Protocol version 6
PDF
Troubleshooting BGP Juniper Examples
A very good introduction to IPv6
Network Address Translation (NAT)
EIGRP (Enhanced Interior Gateway Routing Protocol)
Spanning tree protocol
How BGP Works
Cisco Live! :: Introduction to Segment Routing :: BRKRST-2124 | Las Vegas 2017
Presentation on arp protocol
netfilter and iptables
Cisco IPv6 Tutorial
Border Gateway Protocol
CCNA 1 Routing and Switching v5.0 Chapter 9
Bgp protocol
CCIE Lab - IGP Routing
Ip address and subnetting
Segment Routing Lab
CCNA Lab Guide
Internet Protocol version 6
Troubleshooting BGP Juniper Examples
Ad

Viewers also liked (20)

DOCX
Cisco BGP Exam 642-661 Review Notes
PPT
Implementing Cisco IP Switched Networks
DOCX
SIP PRIMER
PDF
CISCO Exact Questions By: Konard
PDF
Diet soda and weight loss: New study reignites debate
PDF
NAT_Final
DOCX
Regular Expression Patterns
PDF
IPv4 Final /8 Delegation Report
PDF
PDF
Encryption with DANE, NZNOG 2017
PDF
BGP Techniques for Network Operators
PDF
CCNA Dec, 2015 Questions
PPTX
Ams operations
PDF
CCNA - Routing & Switching Commands
PDF
ASA CSC Module
PDF
CCNA 200-120 Exam Quick Notes
PDF
Fast and Easy Subnetting
PDF
vPC_Final
PDF
Cisco trouble shooting
Cisco BGP Exam 642-661 Review Notes
Implementing Cisco IP Switched Networks
SIP PRIMER
CISCO Exact Questions By: Konard
Diet soda and weight loss: New study reignites debate
NAT_Final
Regular Expression Patterns
IPv4 Final /8 Delegation Report
Encryption with DANE, NZNOG 2017
BGP Techniques for Network Operators
CCNA Dec, 2015 Questions
Ams operations
CCNA - Routing & Switching Commands
ASA CSC Module
CCNA 200-120 Exam Quick Notes
Fast and Easy Subnetting
vPC_Final
Cisco trouble shooting
Ad

Similar to NAT- Network Address Translation (20)

PDF
NAT Ccna
PDF
NAT (network address translation) & PAT (port address translation)
PPTX
Network address translations
PDF
Chapter 5-Network Address Translation.pdf
DOCX
How to configure static nat on cisco routers
PPTX
Dynamic NAT
PPT
Day 17.1 nat pat (2)
PPTX
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
PPT
Day 17 nat and pat
PPT
NAT and PAT
PPT
PPTX
CCNA2 Verson6 Chapter9
PPTX
Basic ASA Configuration, NAT in ASA Firewall
PDF
NAT and firewall presentation - how setup a nice firewall
PPT
Chapter11ccna
PPT
Chapter11ccna
PPT
Day 17.1 nat pat
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 11
NAT Ccna
NAT (network address translation) & PAT (port address translation)
Network address translations
Chapter 5-Network Address Translation.pdf
How to configure static nat on cisco routers
Dynamic NAT
Day 17.1 nat pat (2)
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
Day 17 nat and pat
NAT and PAT
CCNA2 Verson6 Chapter9
Basic ASA Configuration, NAT in ASA Firewall
NAT and firewall presentation - how setup a nice firewall
Chapter11ccna
Chapter11ccna
Day 17.1 nat pat
CCNA 2 Routing and Switching v5.0 Chapter 11

More from Eng. Emad Al-Atoum (8)

PDF
Mind Mapping
PDF
How to Build Your Own Power Supply
PDF
Ccna 200-120 Exam Dumps
PDF
CCNA 200-120 Exam Questions
PDF
CCNA Quick Notes
PDF
CCNA CheatSheet
PDF
50 Impossible Quotes
PDF
CCNA Exam Question
Mind Mapping
How to Build Your Own Power Supply
Ccna 200-120 Exam Dumps
CCNA 200-120 Exam Questions
CCNA Quick Notes
CCNA CheatSheet
50 Impossible Quotes
CCNA Exam Question

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Modernizing your data center with Dell and AMD
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development
Advanced methodologies resolving dimensionality complications for autism neur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Reach Out and Touch Someone: Haptics and Empathic Computing
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
Modernizing your data center with Dell and AMD

NAT- Network Address Translation

  • 1. E m a d A l - A t o u m P a g e 1 | 2 Configuring Network Address Translation There are three main types of NAT that can be configured on a Cisco router. Here’s what they are and how to configure them. The example configurations will use the following topology: A. Static NAT When we configure static NAT we want to translate our private IP addresses to a set of public IP addresses on a 1-to-1 basis. This means we need to have the same number of public IP addresses as the number of private IP addresses that we wish to translate. In this example we will configure the inside local address of 192.168.1.1 to the inside global address of 194.72.164.226. First we configure the interfaces (which is inside and outside according to our NAT needs). Fa0/0 is the inside (192.168.1.254) and Fa0/1 is the outside (194.72.164.225): router#conf t router(config)#int fa0/0 router(config-if)#ip nat inside router(config-if)#int fa0/1 router(config-if)#ip nat outside Then we configure the static mappings: router(config)#ip nat inside source static 192.168.1.1 194.72.164.226 B. Dynamic NAT Dynamic NAT is similar to static NAT but it allows a pool of outside IP addresses to be used dynamically. This is good because you don’t have to statically map an inside IP address to an outside IP address but it is bad because you can only use the number of outside IP addresses that you have been allocated. Once the outside IP addresses are in use any additional incoming packets will not be translated. Configuring dynamic NAT is slightly more complicated. Like static NAT we configure the interfaces first: router#conf t router(config)#int fa0/0 router(config-if)#ip nat inside router(config-if)#int fa0/1 router(config-if)#ip nat outside Then we configure the pool of outside IP addresses we want to use (we have 14 in our example). This is fairly straightforward, we give the pool a name and assign the IP addresses to the pool, as well as the network mask: router(config)#ip nat pool myPool 194.72.164.225 192.72.164.239 netmask 255.255.255.240 Then we configure the access list to define which addresses we want to translate: router(config)#ip access-list 1 permit 192.168.1.0 0.0.0.255 Finally configure NAT, specifying our source list and the pool we want to use dynamically: router(config)#ip nat inside source list 1 pool myPool Terms: Inside Local - The IP address of a host on the inside network (usually a private IP address). Inside Global - The IP address of the host on the inside network as seen from the outside network (usually a public IP address). Outside Local - The IP address of the host on the outside network (usually a public IP address). Outside Global - The IP address of the host on the outside network as seen from the inside network (rarely used).
  • 2. E m a d A l - A t o u m P a g e 2 | 2 C. Port Address Translation (NAT Overload) Port address translation (PAT) is probably the most common type of NAT used. PAT is how most ‘home grade’ routers handle the translation of private IP addresses to the public IP addresses used on the internet. PAT translates many inside local IP addresses to a single inside global IP address (194.72.164.225) by altering the source port of the outbound TCP/UDP segments. The router keeps a reference to the translations it has made and changes them back to what they were before translation on return from the internet. Again we configure the interfaces: router#conf t router(config)#int fa0/0 router(config-if)#ip nat inside router(config-if)#int fa0/1 router(config-if)#ip nat outside Then we configure the access list to define which addresses we want to translate: router(config)#ip access-list 1 permit 192.168.1.0 0.0.0.255 Finally configure NAT, specifying our source list and the interface on which to overload (PAT): router(config)#ip nat inside source list 1 interface fa0/1 overload To see the translations in the table simply issue the following command: router#show ip nat translations