SlideShare a Scribd company logo
1 of 25
ICND v2.0—6-1© 2002, Cisco Systems, Inc. All rights reserved. 1
Scaling the network
with
nat and Pat
ICND v2.0—6-2© 2002, Cisco Systems, Inc. All rights reserved. 2
Intro to NAT/PAT
NAT :- the NETWORK ADDRESS TRANSLATION is used to translate the local ip
address on a network with the global or public ip addresses.
Requirement of NAT when..
1.you need to connect to the Internet and your hosts don’t have global unique ip
addresses. We are using private addresses.
2.
2. You change your network to another ISP and that require to renumber your
network. Then using the nat we didn’t need to change our ip addresses.
3. You need to merge two internets with duplicate addresses.
4.No any host from the foreign network can access our local network. Local network
security.
ICND v2.0—6-3© 2002, Cisco Systems, Inc. All rights reserved. 3
Advantages disadvantages
1. Conserves legally registered addresses 1.Translation introduces switching path
2. Reduces address overlap occurrence delays.
3. Increase flexibility when connecting to 2. loss of end to end IP traceability.
internet
4. Eliminates address renumbering as 3. certain applications will not function
network changes. With nat enabled.
NAT terms:-
Inside local: Name of inside source address before translation
Outside local: Name of the destination host before translation
Inside global: Name of inside host after translation
Outside global: Name of outside destination host after translation
ICND v2.0—6-4
NAT types………………………………
Static NAT:- it is the type of Nat that is designed to allow One-to-one mapping
between the local ip addresses and global ip addresses.
BUT keep in mind that
static NAT require that YOU MUST HAVE ONE REAL INTERNET IP ADDRESS
FOR EVERY HOST ON YOUR NETWORK.
Dynamic NAT:- this gives the ability to map an unregistered ip address with a
registered ip address from out of pool of ip addresses. you don’t have to statically
configure your router to map an inside address with an outside address like in static
NAT.
But you must have the sufficient number of ip addresses for every user
who`s going to transfer packets with internet
NAT overloading{(PAT-Port Address Translation)}:- this is the most popular type of
the NAT configuration it is the type of dynamic NAT. that maps multiple local ip
addresses with a single registered ip addresses. __Many –to-One.
But it is mostly
used because of its feature of using the special port number for every translated
addresses with the global ip address through which we can attach unlimited no. of
users with the internet using a single ip address only
NAT overloading{(PAT-Port Address Translation)}:- this is the most popular type of
the NAT configuration it is the type of dynamic NAT. that maps multiple local ip
addresses with a single registered ip addresses. __Many –to-One.
But it is mostly
used because of its feature of using the special port number for every translated
addresses with the global ip address through which we can attach unlimited no. of
users with the internet using a single ip address only
ICND v2.0—6-5
• An IP address is either local or global.
• Local IP addresses are seen in the inside network.
ICND v2.0—6-6
ICND v2.0—6-7
ICND v2.0—6-8
• Establishes static translation between an inside local address
and an inside global address
Router(config)#ip nat inside source static local-ip global-ip
• Marks the interface as connected to the inside
Router(config-if)#ip nat inside
• Marks the interface as connected to the outside
Router(config-if)#ip nat outside
ICND v2.0—6-9© 2002, Cisco Systems, Inc. All rights reserved. 9
NAT configuration
TO CONFIGURE STATIC NAT------------
r3>en
r3#conf t
r3(config)#int serial 0/0
r3(config-if)#ip nat outside
r3(config-if)#int fa 0/0
r3(config-if)#ip nat inside
r3(config-if)#exit
r3(config)#ip nat inside source static 10.0.0.2 20.0.0.3
r3(config)#exit
r3#show ip nat translations
r3#show ip nat statistics
TO REMOVE STATIC NAT:----
r3#conf t
r3(config)#no ip nat inside source static 10.0.0.2 20.0.0.3
ICND v2.0—6-10
ICND v2.0—6-11
• Establishes dynamic source translation, specifying the access
list defined in the prior step
Router(config)#ip nat inside source list
access-list-number pool name
• Defines a pool of global addresses to be allocated as needed
Router(config)#ip nat pool name start-ip end-ip
{netmask netmask | prefix-length prefix-length}
• Defines a standard IP access list permitting those inside local
addresses that are to be translated
Router(config)#access-list access-list-number permit
source [source-wildcard]
ICND v2.0—6-12© 2002, Cisco Systems, Inc. All rights reserved. 12
Configuring Dynamic Translation
HOW TO CONFIGURE DYNAMIC NAT---
r3>en
r3#conf t
r3(config)#int serial 0/0
r3(config-if)#ip nat outside
r3(config-if)#int fa 0/0
r3(config-if)#ip nat inside
r3(config-if)#exit
r3(config)#ip nat pool abc 20.0.0.3 20.0.0.5 netmask 255.255.255.0
r3(config)#access-list 1 permit any
r3(config)#ip nat inside source list 1 pool abc
r3(config)#^Z
r3#sh ip nat translations
r3#sh ip nat statistics
r3#clear ip nat translation *
HOW TO REMOVE DYNAMIC NAT------------
r3>en
r3#conf t
r3(config)#no ip nat inside source list 1 pool abc forced
r3(config)#no access-list 1
r3(config)#no ip nat pool abc
ICND v2.0—6-13
ICND v2.0—6-14
ICND v2.0—6-15
• Establishes dynamic source translation, specifying the access
list defined in the prior step
Router(config)#ip nat inside source list
access-list-number interface interface overload
• Defines a standard IP access list permitting those inside local
addresses that are to be translated
Router(config)#access-list access-list-number permit
source source-wildcard
ICND v2.0—6-16© 2002, Cisco Systems, Inc. All rights reserved. 16
Configuring nat overloading PAT
HOW TO CONFIGURE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS
TRANSLATION)---
r3>en
r3#conf t
r3(config)#int serial 0/0
r3(config-if)#ip nat outside
r3(config-if)#int fa 0/0
r3(config-if)#ip nat inside
r3(config-if)#exit
r3(config)#ip nat pool xyz overload 20.0.0.1 20.0.0.1 prefix-length 24
r3(config)#access-list 1 permit any
r3(config)#ip nat inside source list 1 pool xyz overload
r3(config)#^Z
r3#sh ip nat translations
r3#sh ip nat statistics
r3#clear ip nat translation *
HOW TO REMOVE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS
TRANSLATION)---
r3>en
r3#conf t
r3(config)#no ip nat inside source list 1 pool xyz overload forced
r3(config)#no access-list 1
ICND v2.0—6-17
ICND v2.0—6-18
• Clears a simple dynamic translation entry containing an inside
translation, or both inside and outside translation
Router#clear ip nat translation inside global-ip
local-ip [outside local-ip global-ip]
• Clears all dynamic address translation entries
Router#clear ip nat translation *
• Clears a simple dynamic translation entry containing an outside translation
Router#clear ip nat translation outside
local-ip global-ip
• Clears an extended dynamic translation entry
Router#clear ip nat translation protocol inside global-ip
global-port local-ip local-port [outside local-ip
local-port global-ip global-port]
ICND v2.0—6-19
• Displays translation statistics
Router#show ip nat statistics
• Displays active translations
Router#show ip nat translations
Router#show ip nat translation
Pro Inside global Inside local Outside local Outside global
--- 172.16.131.1 10.10.10.1 --- ---
Router#show ip nat statistics
Total active translations: 1 (1 static, 0 dynamic; 0 extended)
Outside interfaces:
Ethernet0, Serial2.7
Inside interfaces:
Ethernet1
Hits: 5 Misses: 0
…
ICND v2.0—6-20
ICND v2.0—6-21
ICND v2.0—6-22
Router#debug ip nat
NAT: s=192.168.1.95->172.31.233.209, d=172.31.2.132 [6825]
NAT: s=172.31.2.132, d=172.31.233.209->192.168.1.95 [21852]
NAT: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6826]
NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23311]
NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6827]
NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6828]
NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23313]
NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23325]
ICND v2.0—6-23
Translation Not Installed in the
Translation Table?
Verify that:
 The configuration is correct.
 There are not any inbound access lists denying the packets
from entering the NAT router.
 The access list referenced by the NAT command is
permitting all necessary networks.
 There are enough addresses in the NAT pool.
 The router interfaces are appropriately defined as NAT
inside or NAT outside.
ICND v2.0—6-24
Summary
Cisco IOS NAT allows an organization with unregistered
private addresses to connect to the Internet by translating
those addresses into globally registered IP addresses.
You can translate your own IP addresses into globally unique
IP addresses when communicating outside of your network.
Overloading is a form of dynamic NAT that maps multiple
unregistered IP addresses to a single registered IP address
(many-to-one) by using different ports, known also as PAT.
Once you have configured NAT, verify that it is operating as
expected using the clear and show commands.
Sometimes NAT is blamed for IP connectivity problems
when there is actually a routing problem.
Day 17.1 nat pat  (2)

More Related Content

What's hot

NAT (network address translation) & PAT (port address translation)
NAT (network address translation) & PAT (port address translation)NAT (network address translation) & PAT (port address translation)
NAT (network address translation) & PAT (port address translation)Netwax Lab
 
CCNP Lab Guide CCIE University
CCNP Lab Guide CCIE UniversityCCNP Lab Guide CCIE University
CCNP Lab Guide CCIE UniversitySalachudin Emir
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationHamed Moghaddam
 
Cisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationCisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationHamed Moghaddam
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMyNOG
 
More than 200 CCNA Question Answer
More than 200 CCNA Question AnswerMore than 200 CCNA Question Answer
More than 200 CCNA Question Answerpatel_niket9
 
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
 Configuring a Cisco Router as a PPPoE Client for DSL Connectivity Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity3Anetwork com
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer) Arz Sy
 
Capacitacion 2018
Capacitacion 2018Capacitacion 2018
Capacitacion 2018jou333
 

What's hot (20)

NAT (network address translation) & PAT (port address translation)
NAT (network address translation) & PAT (port address translation)NAT (network address translation) & PAT (port address translation)
NAT (network address translation) & PAT (port address translation)
 
NAT Scneario
NAT ScnearioNAT Scneario
NAT Scneario
 
NAT_Final
NAT_FinalNAT_Final
NAT_Final
 
Ccna 2 chapter 11 2014 v5
Ccna 2 chapter 11 2014 v5Ccna 2 chapter 11 2014 v5
Ccna 2 chapter 11 2014 v5
 
Basic BGP Configuration
Basic BGP ConfigurationBasic BGP Configuration
Basic BGP Configuration
 
NAT Traversal
NAT TraversalNAT Traversal
NAT Traversal
 
CCNP Lab Guide CCIE University
CCNP Lab Guide CCIE UniversityCCNP Lab Guide CCIE University
CCNP Lab Guide CCIE University
 
Lan Network with Redundancy.ppt
Lan Network with Redundancy.pptLan Network with Redundancy.ppt
Lan Network with Redundancy.ppt
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 Configuration
 
Cisco CCNA- DHCP Server
Cisco CCNA-  DHCP ServerCisco CCNA-  DHCP Server
Cisco CCNA- DHCP Server
 
Cisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationCisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA Configuration
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip Smith
 
Nat 07
Nat 07Nat 07
Nat 07
 
More than 200 CCNA Question Answer
More than 200 CCNA Question AnswerMore than 200 CCNA Question Answer
More than 200 CCNA Question Answer
 
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
 Configuring a Cisco Router as a PPPoE Client for DSL Connectivity Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
Configuring a Cisco Router as a PPPoE Client for DSL Connectivity
 
Lab practice 1 configuring basic routing and switching (with answer)
Lab practice 1   configuring basic routing and switching (with answer) Lab practice 1   configuring basic routing and switching (with answer)
Lab practice 1 configuring basic routing and switching (with answer)
 
Capacitacion 2018
Capacitacion 2018Capacitacion 2018
Capacitacion 2018
 
Icnd210 s08l03
Icnd210 s08l03Icnd210 s08l03
Icnd210 s08l03
 
Chapter14ccna
Chapter14ccnaChapter14ccna
Chapter14ccna
 

Similar to Day 17.1 nat pat (2)

NAT and PAT
NAT and PATNAT and PAT
NAT and PATMuuluu
 
Chapter11ccna
Chapter11ccnaChapter11ccna
Chapter11ccnarobertoxe
 
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9Waqas Ahmed Nawaz
 
Module (10) NAT for IPV4.pptx
Module (10) NAT for IPV4.pptxModule (10) NAT for IPV4.pptx
Module (10) NAT for IPV4.pptxGeorgeThoreJr
 
NAT- Network Address Translation
NAT- Network Address TranslationNAT- Network Address Translation
NAT- Network Address TranslationEng. Emad Al-Atoum
 
CCNA2 Verson6 Chapter9
CCNA2 Verson6 Chapter9CCNA2 Verson6 Chapter9
CCNA2 Verson6 Chapter9Chaing Ravuth
 
Internet Technology Practical (Mumbai University) -2017
Internet Technology Practical  (Mumbai University) -2017Internet Technology Practical  (Mumbai University) -2017
Internet Technology Practical (Mumbai University) -2017Satyendra Singh
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxgalerussel59292
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRPKishore Kumar
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame RelayTharindu Sankalpa
 
Dynamic routing OSPF 1
Dynamic routing OSPF 1Dynamic routing OSPF 1
Dynamic routing OSPF 1Kishore Kumar
 
Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4newbie2019
 
Nat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with exampleNat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with exampleunixhowto
 
Chapter_2_CCNA2
Chapter_2_CCNA2Chapter_2_CCNA2
Chapter_2_CCNA2sunabozu
 

Similar to Day 17.1 nat pat (2) (20)

Icnd210 s07l01
Icnd210 s07l01Icnd210 s07l01
Icnd210 s07l01
 
NAT and PAT
NAT and PATNAT and PAT
NAT and PAT
 
Chapter11ccna
Chapter11ccnaChapter11ccna
Chapter11ccna
 
Chapter11ccna
Chapter11ccnaChapter11ccna
Chapter11ccna
 
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
 
Icnd210 s07l02
Icnd210 s07l02Icnd210 s07l02
Icnd210 s07l02
 
Module (10) NAT for IPV4.pptx
Module (10) NAT for IPV4.pptxModule (10) NAT for IPV4.pptx
Module (10) NAT for IPV4.pptx
 
NAT- Network Address Translation
NAT- Network Address TranslationNAT- Network Address Translation
NAT- Network Address Translation
 
CCNA2 Verson6 Chapter9
CCNA2 Verson6 Chapter9CCNA2 Verson6 Chapter9
CCNA2 Verson6 Chapter9
 
Lan Network with Redundancy
Lan Network with RedundancyLan Network with Redundancy
Lan Network with Redundancy
 
Internet Technology Practical (Mumbai University) -2017
Internet Technology Practical  (Mumbai University) -2017Internet Technology Practical  (Mumbai University) -2017
Internet Technology Practical (Mumbai University) -2017
 
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docxAll contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
All contents are Copyright © 1992–2012 Cisco Systems, Inc. A.docx
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRP
 
CCNA- part 9 isdn
CCNA- part 9 isdnCCNA- part 9 isdn
CCNA- part 9 isdn
 
ENSA_Module_10.pptx
ENSA_Module_10.pptxENSA_Module_10.pptx
ENSA_Module_10.pptx
 
Service Provider Networks and Frame Relay
Service Provider Networks and Frame RelayService Provider Networks and Frame Relay
Service Provider Networks and Frame Relay
 
Dynamic routing OSPF 1
Dynamic routing OSPF 1Dynamic routing OSPF 1
Dynamic routing OSPF 1
 
Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4
 
Nat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with exampleNat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with example
 
Chapter_2_CCNA2
Chapter_2_CCNA2Chapter_2_CCNA2
Chapter_2_CCNA2
 

More from CYBERINTELLIGENTS (20)

Wide area networks
Wide area networksWide area networks
Wide area networks
 
Switching
SwitchingSwitching
Switching
 
Switching
SwitchingSwitching
Switching
 
Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12
 
Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12
 
Routerfundaments gurwinder
Routerfundaments gurwinderRouterfundaments gurwinder
Routerfundaments gurwinder
 
Rip 1 rip 2
Rip 1 rip 2Rip 1 rip 2
Rip 1 rip 2
 
Ospf new
Ospf newOspf new
Ospf new
 
Nat config
Nat configNat config
Nat config
 
Ipv6^ new
Ipv6^ newIpv6^ new
Ipv6^ new
 
Ip addressing...
Ip addressing... Ip addressing...
Ip addressing...
 
Ip address
Ip address Ip address
Ip address
 
Igrp
IgrpIgrp
Igrp
 
Frame relay
Frame  relayFrame  relay
Frame relay
 
Eigrp new
Eigrp newEigrp new
Eigrp new
 
Day 25 cisco ios router configuration
Day 25 cisco ios router configurationDay 25 cisco ios router configuration
Day 25 cisco ios router configuration
 
Day 22 _ ppp
Day 22  _ ppp Day 22  _ ppp
Day 22 _ ppp
 
Day 20.i pv6 lab
Day 20.i pv6 labDay 20.i pv6 lab
Day 20.i pv6 lab
 
Day 20.3 frame relay
Day 20.3 frame relay Day 20.3 frame relay
Day 20.3 frame relay
 
Day 20.2 frame relay
Day 20.2 frame relay Day 20.2 frame relay
Day 20.2 frame relay
 

Recently uploaded

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Day 17.1 nat pat (2)

  • 1. ICND v2.0—6-1© 2002, Cisco Systems, Inc. All rights reserved. 1 Scaling the network with nat and Pat
  • 2. ICND v2.0—6-2© 2002, Cisco Systems, Inc. All rights reserved. 2 Intro to NAT/PAT NAT :- the NETWORK ADDRESS TRANSLATION is used to translate the local ip address on a network with the global or public ip addresses. Requirement of NAT when.. 1.you need to connect to the Internet and your hosts don’t have global unique ip addresses. We are using private addresses. 2. 2. You change your network to another ISP and that require to renumber your network. Then using the nat we didn’t need to change our ip addresses. 3. You need to merge two internets with duplicate addresses. 4.No any host from the foreign network can access our local network. Local network security.
  • 3. ICND v2.0—6-3© 2002, Cisco Systems, Inc. All rights reserved. 3 Advantages disadvantages 1. Conserves legally registered addresses 1.Translation introduces switching path 2. Reduces address overlap occurrence delays. 3. Increase flexibility when connecting to 2. loss of end to end IP traceability. internet 4. Eliminates address renumbering as 3. certain applications will not function network changes. With nat enabled. NAT terms:- Inside local: Name of inside source address before translation Outside local: Name of the destination host before translation Inside global: Name of inside host after translation Outside global: Name of outside destination host after translation
  • 4. ICND v2.0—6-4 NAT types……………………………… Static NAT:- it is the type of Nat that is designed to allow One-to-one mapping between the local ip addresses and global ip addresses. BUT keep in mind that static NAT require that YOU MUST HAVE ONE REAL INTERNET IP ADDRESS FOR EVERY HOST ON YOUR NETWORK. Dynamic NAT:- this gives the ability to map an unregistered ip address with a registered ip address from out of pool of ip addresses. you don’t have to statically configure your router to map an inside address with an outside address like in static NAT. But you must have the sufficient number of ip addresses for every user who`s going to transfer packets with internet NAT overloading{(PAT-Port Address Translation)}:- this is the most popular type of the NAT configuration it is the type of dynamic NAT. that maps multiple local ip addresses with a single registered ip addresses. __Many –to-One. But it is mostly used because of its feature of using the special port number for every translated addresses with the global ip address through which we can attach unlimited no. of users with the internet using a single ip address only NAT overloading{(PAT-Port Address Translation)}:- this is the most popular type of the NAT configuration it is the type of dynamic NAT. that maps multiple local ip addresses with a single registered ip addresses. __Many –to-One. But it is mostly used because of its feature of using the special port number for every translated addresses with the global ip address through which we can attach unlimited no. of users with the internet using a single ip address only
  • 5. ICND v2.0—6-5 • An IP address is either local or global. • Local IP addresses are seen in the inside network.
  • 8. ICND v2.0—6-8 • Establishes static translation between an inside local address and an inside global address Router(config)#ip nat inside source static local-ip global-ip • Marks the interface as connected to the inside Router(config-if)#ip nat inside • Marks the interface as connected to the outside Router(config-if)#ip nat outside
  • 9. ICND v2.0—6-9© 2002, Cisco Systems, Inc. All rights reserved. 9 NAT configuration TO CONFIGURE STATIC NAT------------ r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat inside source static 10.0.0.2 20.0.0.3 r3(config)#exit r3#show ip nat translations r3#show ip nat statistics TO REMOVE STATIC NAT:---- r3#conf t r3(config)#no ip nat inside source static 10.0.0.2 20.0.0.3
  • 11. ICND v2.0—6-11 • Establishes dynamic source translation, specifying the access list defined in the prior step Router(config)#ip nat inside source list access-list-number pool name • Defines a pool of global addresses to be allocated as needed Router(config)#ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-length} • Defines a standard IP access list permitting those inside local addresses that are to be translated Router(config)#access-list access-list-number permit source [source-wildcard]
  • 12. ICND v2.0—6-12© 2002, Cisco Systems, Inc. All rights reserved. 12 Configuring Dynamic Translation HOW TO CONFIGURE DYNAMIC NAT--- r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat pool abc 20.0.0.3 20.0.0.5 netmask 255.255.255.0 r3(config)#access-list 1 permit any r3(config)#ip nat inside source list 1 pool abc r3(config)#^Z r3#sh ip nat translations r3#sh ip nat statistics r3#clear ip nat translation * HOW TO REMOVE DYNAMIC NAT------------ r3>en r3#conf t r3(config)#no ip nat inside source list 1 pool abc forced r3(config)#no access-list 1 r3(config)#no ip nat pool abc
  • 15. ICND v2.0—6-15 • Establishes dynamic source translation, specifying the access list defined in the prior step Router(config)#ip nat inside source list access-list-number interface interface overload • Defines a standard IP access list permitting those inside local addresses that are to be translated Router(config)#access-list access-list-number permit source source-wildcard
  • 16. ICND v2.0—6-16© 2002, Cisco Systems, Inc. All rights reserved. 16 Configuring nat overloading PAT HOW TO CONFIGURE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS TRANSLATION)--- r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat pool xyz overload 20.0.0.1 20.0.0.1 prefix-length 24 r3(config)#access-list 1 permit any r3(config)#ip nat inside source list 1 pool xyz overload r3(config)#^Z r3#sh ip nat translations r3#sh ip nat statistics r3#clear ip nat translation * HOW TO REMOVE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS TRANSLATION)--- r3>en r3#conf t r3(config)#no ip nat inside source list 1 pool xyz overload forced r3(config)#no access-list 1
  • 18. ICND v2.0—6-18 • Clears a simple dynamic translation entry containing an inside translation, or both inside and outside translation Router#clear ip nat translation inside global-ip local-ip [outside local-ip global-ip] • Clears all dynamic address translation entries Router#clear ip nat translation * • Clears a simple dynamic translation entry containing an outside translation Router#clear ip nat translation outside local-ip global-ip • Clears an extended dynamic translation entry Router#clear ip nat translation protocol inside global-ip global-port local-ip local-port [outside local-ip local-port global-ip global-port]
  • 19. ICND v2.0—6-19 • Displays translation statistics Router#show ip nat statistics • Displays active translations Router#show ip nat translations Router#show ip nat translation Pro Inside global Inside local Outside local Outside global --- 172.16.131.1 10.10.10.1 --- --- Router#show ip nat statistics Total active translations: 1 (1 static, 0 dynamic; 0 extended) Outside interfaces: Ethernet0, Serial2.7 Inside interfaces: Ethernet1 Hits: 5 Misses: 0 …
  • 22. ICND v2.0—6-22 Router#debug ip nat NAT: s=192.168.1.95->172.31.233.209, d=172.31.2.132 [6825] NAT: s=172.31.2.132, d=172.31.233.209->192.168.1.95 [21852] NAT: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6826] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23311] NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6827] NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6828] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23313] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23325]
  • 23. ICND v2.0—6-23 Translation Not Installed in the Translation Table? Verify that:  The configuration is correct.  There are not any inbound access lists denying the packets from entering the NAT router.  The access list referenced by the NAT command is permitting all necessary networks.  There are enough addresses in the NAT pool.  The router interfaces are appropriately defined as NAT inside or NAT outside.
  • 24. ICND v2.0—6-24 Summary Cisco IOS NAT allows an organization with unregistered private addresses to connect to the Internet by translating those addresses into globally registered IP addresses. You can translate your own IP addresses into globally unique IP addresses when communicating outside of your network. Overloading is a form of dynamic NAT that maps multiple unregistered IP addresses to a single registered IP address (many-to-one) by using different ports, known also as PAT. Once you have configured NAT, verify that it is operating as expected using the clear and show commands. Sometimes NAT is blamed for IP connectivity problems when there is actually a routing problem.

Editor's Notes

  1. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  2. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  3. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  4. Slide 1 of 2 Purpose: This slide states the chapter objectives. Emphasize: Read or state each objective so that each student has a clear understanding of the chapter objectives. Note: Catalyst switches have different CLIs. The Catalyst 2900xl and the Catalyst 1900 has a Cisco IOS CLI. The Cisco IOS CLI commands available on the 2900xl is different from the 1900. The Catalyst 5000 family has no Cisco IOS CLI, and use the set commands instead. This class only covers the configuration on the Catalyst 1900 switch.
  5. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  6. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  7. Purpose: This chapter introduces the Cisco IOS™ CLI on the Catalyst® 1900 switch and router. Timing: This chapter should take about 2 hours to present. Note: The Catalyst 1900 switch only has a subset of the router Cisco IOS commands available. Contents: Introduction to Cisco IOS. Explain to the student what is IOS? Cisco Device startup procedures in general. IOS configuration source. General introduction to the IOS CLI. Cat 1900 switch startup procedures. Intro to Cat 1900 CLI. This part covers the basic configuration on the switch, like setting the IP address and hostname. More details about the various Cat 1900 switch configuration commands are explained in Chapter 6 and 7. Router startup procedures. More details on the router startup process is discussed in chapter 5. Router IOS CLI.
  8. Purpose: This slide discuss the initial configurations on the routers and switches. Note: There is no setup mode on the Catalyst 1900 switch.