SlideShare a Scribd company logo
1 of 15
Network Address Translation
NAT
IP Public
Internet
Many-to-one
PAT
IP
IP
IP
IP
IP
IP Public
IP Public
IP Public
IP Public
One-to-one
Static NAT
Dynamic NAT
NAT
Internet
10.0.0.0/24
.1 .2 2.2.2.2
.1
1.1.1.0/24
.4
data 10.0.0.1 2.2.2.2 data 10.0.0.1 2.2.2.2
data 10.0.0.1
2.2.2.2
NAT Table
Inside Outside
10.0.0.1 1.1.1.1
NAT
Internet
10.0.0.0/24
.1 .2 2.2.2.2
.1
1.1.1.0/24
.4
data 10.0.0.1 2.2.2.2 data 1.1.1.1 2.2.2.2
data 1.1.1.1
2.2.2.2
NAT Table
Inside Outside
10.0.0.1 1.1.1.1
data 1.1.1.1 2.2.2.2
10.0.0.1
data 1.1.1.1
2.2.2.2 10.0.0.1
Router# show ip nat translations
Inside global Inside local Outside local Outside global
1.1.1.1 10.0.0.1 ... ...
Router#
Static NAT
NAT
Internet
10.0.0.0/24
.1 .2 2.2.2.2
.1
1.1.1.0/24
.4
data 1.1.1.1
2.2.2.2
NAT Table
Inside Outside
10.0.0.1 1.1.1.1
data 1.1.1.1
2.2.2.2 10.0.0.1
Web
Server
R(config)# ip nat inside source static 10.0.0.1 1.1.1.1
R(config-if)# ip nat inside
R(config-if)# ip nat outside
Static NAT
NAT
Internet
10.0.0.0/24
.1 .2 2.2.2.2
.1
1.1.1.0/24
.4
data 3.3.3.3
2.2.2.2
NAT Table
Inside Outside
10.0.0.1 3.3.3.3
data 3.3.3.3
2.2.2.2 10.0.0.1
Web
Server
R(config)# ip nat inside source static 10.0.0.1 3.3.3.3
R(config)# ip route 3.3.3.3 255.255.255.255 1.1.1.1
front IP, routed IP
Static NAT
NAT
Internet
10.0.0.0/24
.2 2.2.2.2
.1
1.1.1.0/24
.4
NAT Table
Inside Outside
10.0.0.1 3.3.3.3
10.0.0.3 4.4.4.4
R(config)# ip nat inside source static 10.0.0.1 3.3.3.3
.1
Web
Server
Web
Server
.3
R(config)# ip nat inside source static 10.0.0.3 4.4.4.4
Dynamic NAT
NAT
Internet
10.0.0.0/24
.7 2.2.2.2
.1
1.1.1.0/24
.4
NAT Table
Inside Outside
10.0.0.1 3.3.3.1
10.0.0.2 3.3.3.2
10.0.0.3 3.3.3.3
10.0.0.4 3.3.3.4
10.0.0.5 3.3.3.5
10.0.0.6 3.3.3.6
.4
.6
.5
R(config)# ip route 3.3.3.0 255.255.255.248 1.1.1.1
.3
.2
.1
Dynamic NAT
NAT Table
Inside Outside
10.0.0.1 3.3.3.1
10.0.0.2 3.3.3.2
10.0.0.3 3.3.3.3
10.0.0.4 3.3.3.4
10.0.0.5 3.3.3.5
10.0.0.6 3.3.3.6
R(config)# ip nat inside source static 10.0.0.6 3.3.3.6
R(config)# ip nat inside source static 10.0.0.5 3.3.3.5
R(config)# ip nat inside source static 10.0.0.4 3.3.3.4
R(config)# ip nat inside source static 10.0.0.3 3.3.3.3
R(config)# ip nat inside source static 10.0.0.2 3.3.3.2
R(config)# ip nat inside source static 10.0.0.1 3.3.3.1
access-list 1 permit 10.0.0.0 0.0.0.7
R(config)# ip nat pool ABC 3.3.3.1 3.3.3.6 prefix-length 29
R(config)# ip nat inside source list 1 pool ABC
Transport Layer
DNS
HTTP
1.1.1.1 2.2.2.2
53
80
80
1024
1025
1026
NAT
Internet
10.0.0.0/24
.7 2.2.2.2
.1
1.1.1.0/24
.4
.4
.6
.5
.3
.2
.1
NAT Table
Inside Outside
10.0.0.1 1.1.1.1
10.0.0.2 1.1.1.2
10.0.0.3 1.1.1.3
10.0.0.4 1.1.1.4
10.0.0.5 1.1.1.5
10.0.0.6 1.1.1.6
NAT
2.2.2.2
NAT Table
Inside Outside
10.0.0.1 1.1.1.1
10.0.0.2 1.1.1.2
10.0.0.3 1.1.1.3
10.0.0.4 1.1.1.4
10.0.0.5 1.1.1.5
10.0.0.6 1.1.1.6
.4
.6
.5
.3
.2
.1
1.1.1.1
1.1.1.2
1.1.1.3
1.1.1.4
1.1.1.5
1.1.1.6
PAT
2.2.2.2
PAT Table
Inside Outside
10.0.0.1 1.1.1.1
10.0.0.2 1.1.1.1
10.0.0.3 1.1.1.1
10.0.0.4 1.1.1.1
10.0.0.5 1.1.1.1
10.0.0.6 1.1.1.1
.4
.6
.5
.3
.2
.1
1.1.1.1
1.1.1.1
1.1.1.1
1.1.1.1
1.1.1.1
1.1.1.1
PAT Table
Inside Outside
10.0.0.1 1.1.1.1 : 1024
10.0.0.2 1.1.1.1 : 1025
10.0.0.3 1.1.1.1 : 1026
10.0.0.4 1.1.1.1 : 1027
10.0.0.5 1.1.1.1 : 1028
10.0.0.6 1.1.1.1 : 1029
PAT
2.2.2.2
.4
.6
.5
.3
.2
.1
1.1.1.1 : 1024
1.1.1.1 : 1025
1.1.1.1 : 1026
1.1.1.1 : 1027
1.1.1.1 : 1028
1.1.1.1 : 1029
socket 1
socket 2
socket 3
socket 4
socket 5
socket 6
PAT
Internet
.2 2.2.2.2
.1
1.1.1.0/24
.4
.4
.6
.5
.3
.2
.1
10.0.0.0/24
PAT Table
Inside Outside
10.0.0.1 1.1.1.1 : 1024
10.0.0.2 1.1.1.1 : 1025
10.0.0.3 1.1.1.1 : 1026
10.0.0.4 1.1.1.1 : 1027
10.0.0.5 1.1.1.1 : 1028
10.0.0.6 1.1.1.1 : 1029
socket 1
socket 2
socket 3
socket 4
socket 5
socket 6
PAT
Internet
.2 2.2.2.2
.1
1.1.1.0/24
.4
.4
.6
.5
.3
.2
.1
10.0.0.0/24
PAT Table
Inside Outside
10.0.0.1 : 1024 1.1.1.1 : 1024
10.0.0.1 : 1025 1.1.1.1 : 1025
10.0.0.1 : 1026 1.1.1.1 : 1026
10.0.0.6 : 1024 1.1.1.1 : 1027
10.0.0.6 : 1025 1.1.1.1 : 1028
10.0.0.6 : 1026 1.1.1.1 : 1029
socket 1
socket 2
socket 3
socket 4
socket 5
socket 6
session
1026
R(config)# ip nat inside source list 1 pool ABC overload
ip nat pool ABC 1.1.1.1 1.1.1.1 prefix-length 24
R# clear ip nat translation *
f0/0
R(config)# ip nat inside source list 1 interface f0/0 overload
data 1029 1.1.1.1
80 2.2.2.2
data 1029 1.1.1.1
80 2.2.2.2
data 1029 1.1.1.1
80 2.2.2.2
data 1029 1.1.1.1
80 2.2.2.2
10.0.0.6
1026
1026 10.0.0.6
10.0.0.6 : 80 1.1.1.1 : 80
http
10.0.0.5 : 69 1.1.1.1 : 69
tftp
R(config)# ip nat inside source static udp 10.0.0.5 69 1.1.1.1 69

More Related Content

Similar to 10. NAT.pptx

Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Jim Geovedi
 
802.1x Implementation Plan for Seacoast
802.1x Implementation Plan for Seacoast802.1x Implementation Plan for Seacoast
802.1x Implementation Plan for SeacoastSithideth Banavong
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated newAmolDhoke3
 
The New Root Zone DNSSEC KSK
The New Root Zone DNSSEC KSKThe New Root Zone DNSSEC KSK
The New Root Zone DNSSEC KSKAPNIC
 
Isp Setup Red Hat Howto
Isp Setup Red Hat HowtoIsp Setup Red Hat Howto
Isp Setup Red Hat Howtoguest60864fc
 
Hadoop crashcourse v3
Hadoop crashcourse v3Hadoop crashcourse v3
Hadoop crashcourse v3Hortonworks
 
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at Midokura
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at MidokuraTechnical Deep Dive into MidoNet - Taku Fukushima, Developer at Midokura
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at MidokuraMidoNet
 
Fully Scalable Networking with MidoNet
Fully Scalable Networking with MidoNetFully Scalable Networking with MidoNet
Fully Scalable Networking with MidoNetSandro Mathys
 
Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)Anatoliy Okhotnikov
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法Naoto MATSUMOTO
 
Internet Week 2006 - DNS Day - AS112 Report
Internet Week 2006 - DNS Day - AS112 ReportInternet Week 2006 - DNS Day - AS112 Report
Internet Week 2006 - DNS Day - AS112 ReportChika Yoshimura
 
Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2abramsm
 
BFS Distribution Via DCM
BFS Distribution Via DCMBFS Distribution Via DCM
BFS Distribution Via DCMowenlin
 
Detect Threats Faster
Detect Threats FasterDetect Threats Faster
Detect Threats FasterForce 3
 
Cisco asa active,active failover configuration
Cisco asa active,active failover configurationCisco asa active,active failover configuration
Cisco asa active,active failover configurationIT Tech
 
Limitation of Cloud Networking & Eywa virtual network model for full HA and LB
Limitation of Cloud Networking & Eywa virtual network model for full HA and LBLimitation of Cloud Networking & Eywa virtual network model for full HA and LB
Limitation of Cloud Networking & Eywa virtual network model for full HA and LBJungIn Jung
 

Similar to 10. NAT.pptx (20)

N at
N atN at
N at
 
Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2Leonardo Nve Egea - Playing in a Satellite Environment 1.2
Leonardo Nve Egea - Playing in a Satellite Environment 1.2
 
Nat
NatNat
Nat
 
802.1x Implementation Plan for Seacoast
802.1x Implementation Plan for Seacoast802.1x Implementation Plan for Seacoast
802.1x Implementation Plan for Seacoast
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated new
 
The New Root Zone DNSSEC KSK
The New Root Zone DNSSEC KSKThe New Root Zone DNSSEC KSK
The New Root Zone DNSSEC KSK
 
VoltDB on SolftLayer Cloud
VoltDB on SolftLayer CloudVoltDB on SolftLayer Cloud
VoltDB on SolftLayer Cloud
 
Isp Setup Red Hat Howto
Isp Setup Red Hat HowtoIsp Setup Red Hat Howto
Isp Setup Red Hat Howto
 
Hadoop crashcourse v3
Hadoop crashcourse v3Hadoop crashcourse v3
Hadoop crashcourse v3
 
MidoNet deep dive
MidoNet deep diveMidoNet deep dive
MidoNet deep dive
 
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at Midokura
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at MidokuraTechnical Deep Dive into MidoNet - Taku Fukushima, Developer at Midokura
Technical Deep Dive into MidoNet - Taku Fukushima, Developer at Midokura
 
Fully Scalable Networking with MidoNet
Fully Scalable Networking with MidoNetFully Scalable Networking with MidoNet
Fully Scalable Networking with MidoNet
 
Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法
 
Internet Week 2006 - DNS Day - AS112 Report
Internet Week 2006 - DNS Day - AS112 ReportInternet Week 2006 - DNS Day - AS112 Report
Internet Week 2006 - DNS Day - AS112 Report
 
Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2Big datadc skyfall_preso_v2
Big datadc skyfall_preso_v2
 
BFS Distribution Via DCM
BFS Distribution Via DCMBFS Distribution Via DCM
BFS Distribution Via DCM
 
Detect Threats Faster
Detect Threats FasterDetect Threats Faster
Detect Threats Faster
 
Cisco asa active,active failover configuration
Cisco asa active,active failover configurationCisco asa active,active failover configuration
Cisco asa active,active failover configuration
 
Limitation of Cloud Networking & Eywa virtual network model for full HA and LB
Limitation of Cloud Networking & Eywa virtual network model for full HA and LBLimitation of Cloud Networking & Eywa virtual network model for full HA and LB
Limitation of Cloud Networking & Eywa virtual network model for full HA and LB
 

Recently uploaded

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

10. NAT.pptx

  • 1. Network Address Translation NAT IP Public Internet Many-to-one PAT IP IP IP IP IP IP Public IP Public IP Public IP Public One-to-one Static NAT Dynamic NAT
  • 2. NAT Internet 10.0.0.0/24 .1 .2 2.2.2.2 .1 1.1.1.0/24 .4 data 10.0.0.1 2.2.2.2 data 10.0.0.1 2.2.2.2 data 10.0.0.1 2.2.2.2 NAT Table Inside Outside 10.0.0.1 1.1.1.1
  • 3. NAT Internet 10.0.0.0/24 .1 .2 2.2.2.2 .1 1.1.1.0/24 .4 data 10.0.0.1 2.2.2.2 data 1.1.1.1 2.2.2.2 data 1.1.1.1 2.2.2.2 NAT Table Inside Outside 10.0.0.1 1.1.1.1 data 1.1.1.1 2.2.2.2 10.0.0.1 data 1.1.1.1 2.2.2.2 10.0.0.1 Router# show ip nat translations Inside global Inside local Outside local Outside global 1.1.1.1 10.0.0.1 ... ... Router#
  • 4. Static NAT NAT Internet 10.0.0.0/24 .1 .2 2.2.2.2 .1 1.1.1.0/24 .4 data 1.1.1.1 2.2.2.2 NAT Table Inside Outside 10.0.0.1 1.1.1.1 data 1.1.1.1 2.2.2.2 10.0.0.1 Web Server R(config)# ip nat inside source static 10.0.0.1 1.1.1.1 R(config-if)# ip nat inside R(config-if)# ip nat outside
  • 5. Static NAT NAT Internet 10.0.0.0/24 .1 .2 2.2.2.2 .1 1.1.1.0/24 .4 data 3.3.3.3 2.2.2.2 NAT Table Inside Outside 10.0.0.1 3.3.3.3 data 3.3.3.3 2.2.2.2 10.0.0.1 Web Server R(config)# ip nat inside source static 10.0.0.1 3.3.3.3 R(config)# ip route 3.3.3.3 255.255.255.255 1.1.1.1 front IP, routed IP
  • 6. Static NAT NAT Internet 10.0.0.0/24 .2 2.2.2.2 .1 1.1.1.0/24 .4 NAT Table Inside Outside 10.0.0.1 3.3.3.3 10.0.0.3 4.4.4.4 R(config)# ip nat inside source static 10.0.0.1 3.3.3.3 .1 Web Server Web Server .3 R(config)# ip nat inside source static 10.0.0.3 4.4.4.4
  • 7. Dynamic NAT NAT Internet 10.0.0.0/24 .7 2.2.2.2 .1 1.1.1.0/24 .4 NAT Table Inside Outside 10.0.0.1 3.3.3.1 10.0.0.2 3.3.3.2 10.0.0.3 3.3.3.3 10.0.0.4 3.3.3.4 10.0.0.5 3.3.3.5 10.0.0.6 3.3.3.6 .4 .6 .5 R(config)# ip route 3.3.3.0 255.255.255.248 1.1.1.1 .3 .2 .1
  • 8. Dynamic NAT NAT Table Inside Outside 10.0.0.1 3.3.3.1 10.0.0.2 3.3.3.2 10.0.0.3 3.3.3.3 10.0.0.4 3.3.3.4 10.0.0.5 3.3.3.5 10.0.0.6 3.3.3.6 R(config)# ip nat inside source static 10.0.0.6 3.3.3.6 R(config)# ip nat inside source static 10.0.0.5 3.3.3.5 R(config)# ip nat inside source static 10.0.0.4 3.3.3.4 R(config)# ip nat inside source static 10.0.0.3 3.3.3.3 R(config)# ip nat inside source static 10.0.0.2 3.3.3.2 R(config)# ip nat inside source static 10.0.0.1 3.3.3.1 access-list 1 permit 10.0.0.0 0.0.0.7 R(config)# ip nat pool ABC 3.3.3.1 3.3.3.6 prefix-length 29 R(config)# ip nat inside source list 1 pool ABC
  • 10. NAT Internet 10.0.0.0/24 .7 2.2.2.2 .1 1.1.1.0/24 .4 .4 .6 .5 .3 .2 .1 NAT Table Inside Outside 10.0.0.1 1.1.1.1 10.0.0.2 1.1.1.2 10.0.0.3 1.1.1.3 10.0.0.4 1.1.1.4 10.0.0.5 1.1.1.5 10.0.0.6 1.1.1.6
  • 11. NAT 2.2.2.2 NAT Table Inside Outside 10.0.0.1 1.1.1.1 10.0.0.2 1.1.1.2 10.0.0.3 1.1.1.3 10.0.0.4 1.1.1.4 10.0.0.5 1.1.1.5 10.0.0.6 1.1.1.6 .4 .6 .5 .3 .2 .1 1.1.1.1 1.1.1.2 1.1.1.3 1.1.1.4 1.1.1.5 1.1.1.6
  • 12. PAT 2.2.2.2 PAT Table Inside Outside 10.0.0.1 1.1.1.1 10.0.0.2 1.1.1.1 10.0.0.3 1.1.1.1 10.0.0.4 1.1.1.1 10.0.0.5 1.1.1.1 10.0.0.6 1.1.1.1 .4 .6 .5 .3 .2 .1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1 1.1.1.1
  • 13. PAT Table Inside Outside 10.0.0.1 1.1.1.1 : 1024 10.0.0.2 1.1.1.1 : 1025 10.0.0.3 1.1.1.1 : 1026 10.0.0.4 1.1.1.1 : 1027 10.0.0.5 1.1.1.1 : 1028 10.0.0.6 1.1.1.1 : 1029 PAT 2.2.2.2 .4 .6 .5 .3 .2 .1 1.1.1.1 : 1024 1.1.1.1 : 1025 1.1.1.1 : 1026 1.1.1.1 : 1027 1.1.1.1 : 1028 1.1.1.1 : 1029 socket 1 socket 2 socket 3 socket 4 socket 5 socket 6
  • 14. PAT Internet .2 2.2.2.2 .1 1.1.1.0/24 .4 .4 .6 .5 .3 .2 .1 10.0.0.0/24 PAT Table Inside Outside 10.0.0.1 1.1.1.1 : 1024 10.0.0.2 1.1.1.1 : 1025 10.0.0.3 1.1.1.1 : 1026 10.0.0.4 1.1.1.1 : 1027 10.0.0.5 1.1.1.1 : 1028 10.0.0.6 1.1.1.1 : 1029 socket 1 socket 2 socket 3 socket 4 socket 5 socket 6
  • 15. PAT Internet .2 2.2.2.2 .1 1.1.1.0/24 .4 .4 .6 .5 .3 .2 .1 10.0.0.0/24 PAT Table Inside Outside 10.0.0.1 : 1024 1.1.1.1 : 1024 10.0.0.1 : 1025 1.1.1.1 : 1025 10.0.0.1 : 1026 1.1.1.1 : 1026 10.0.0.6 : 1024 1.1.1.1 : 1027 10.0.0.6 : 1025 1.1.1.1 : 1028 10.0.0.6 : 1026 1.1.1.1 : 1029 socket 1 socket 2 socket 3 socket 4 socket 5 socket 6 session 1026 R(config)# ip nat inside source list 1 pool ABC overload ip nat pool ABC 1.1.1.1 1.1.1.1 prefix-length 24 R# clear ip nat translation * f0/0 R(config)# ip nat inside source list 1 interface f0/0 overload data 1029 1.1.1.1 80 2.2.2.2 data 1029 1.1.1.1 80 2.2.2.2 data 1029 1.1.1.1 80 2.2.2.2 data 1029 1.1.1.1 80 2.2.2.2 10.0.0.6 1026 1026 10.0.0.6 10.0.0.6 : 80 1.1.1.1 : 80 http 10.0.0.5 : 69 1.1.1.1 : 69 tftp R(config)# ip nat inside source static udp 10.0.0.5 69 1.1.1.1 69