CCNA4-1 Chapter 7-1 IP Addressing Services Scaling Networks With Network Address Translation (NAT)

Slides:



Advertisements
Similar presentations
CST Computer Networks NAT CST 415 4/10/2017 CST Computer Networks.
Advertisements

© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 W. Schulte Chapter 5: Network Address Translation for IPv4  Connecting.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Lecture15: Network Address Translation for IPv4 Connecting Networks.
Cisco Certified Network Associate
© 2002, Cisco Systems, Inc. All rights reserved..
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—4-1 Managing IP Traffic with ACLs Scaling the Network with NAT and PAT.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CMPSC-358 (CCNA 4 ) Spring 2007.
Chapter 6 Network Address Translation (NAT). Network Address Translation  Modification of source or destination IP address  Needed by networks using.
© 2003, Cisco Systems, Inc. All rights reserved. ICND v2.1—4-1 © 2003, Cisco Systems, Inc. All rights reserved. 1 Scaling the Network with NAT and PAT.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition Chapter 9 Network Services.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 CCNA 5.0 Planning Guide Chapter 5: Network Address Translation for IPv4.
Lecture Week 7 Implementing IP Addressing Services.
Sybex CCENT Chapter 13: Network Address Translation Instructor & Todd Lammle.
Andrew Smith 1 NAT and DHCP ( Network Address Translation and Dynamic Host Configuration Protocol )
4: Addressing Working At A Small-to-Medium Business or ISP.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—7-1 Address Space Management Scaling the Network with NAT and PAT.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Network Address Translation
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0 Module 1 Scaling IP Addresses.
IP Address Services W.lilakiatsakun.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
Page 1 NAT & VPN Lecture 8 Hassan Shuja 05/02/2006.
Introduction to Network Address Translation
IP Address Services W.lilakiatsakun. Topics DHCP (Dynamic Host Configuration Protocol) NAT (Network Address Translation) IPv6 (Internet Protocol version.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
Implementing IP Addressing Services Accessing the WAN – Chapter 7.
CCNA4-1 Chapter 7-1 Chapter 7 IP Addressing Services Part I.
Network Address Translations Project no. : 12 Prof. Edmund Gean Presented by DhruvaPatel( ) Sweta Patel( ) Rushika Patel ( ) Guided.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Planning the Addressing Structure Working at a Small-to-Medium Business.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0 Module 1 Scaling IP Addresses.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0 Module 1 Scaling IP Addresses.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.1 Module 1 Scaling IP Addresses.
CCNA 4 v3.1 Module 1 Scaling IP Addresses
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 11: Network Address Translation for IPv4 Routing And Switching.
1 © 2004, Cisco Systems, Inc. All rights reserved. Scaling IP Addresses Network Address Translation(NAT)
Scaling Networks with Network Address Translation Scaling Networks with Network Address Translation Solutions for IPv4 Security and Scalability ECPI College.
N ETWORK S ECURITY Network Address Translation. C ONTENTS What is NAT NAT Terminology How NAT works NAT translation Dynamic, static and overloading Advantages.
NAT/PAT by S K SATAPATHY
1 Pertemuan 14 Scaling Networks with NAT and PAT.
Network Layer IP Address.
Configuring NAT. Configuring Static NAT There are two basic tasks to perform when configuring static NAT translations: Create the mapping between the.
CCNA4-1 Chapter 7-1 IPv4 Services DHCPNAT/PAT. CCNA4-2 Chapter 7-1 IP Addressing Services Dynamic Host Configuration Protocol (DHCP)
CCNA4-1 Chapter 7-1 NAT Chapter 11 Routing and Switching (CCNA2)
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
Planning the Addressing Structure
Implementing IP Addressing Services
© 2002, Cisco Systems, Inc. All rights reserved.
IP Addressing Services Part I
Chapter 13 Network Address Translation
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
Instructor Materials Chapter 9: NAT for IPv4
NAT / PAT.
Routing and Switching Essentials v6.0
NAT , Device Discovery Chapter 9 , chapter 10.
Implementing IP Addressing Services
CIS 82 Routing Protocols and Concepts Chapter 11 NAT
Routing and Switching Essentials v6.0
NAT / PAT.
Cabrillo College Building Cisco Remote Access Network
Instructor Materials Chapter 9: NAT for IPv4
Planning the Addressing Structure
Implementing IP Addressing Services
Planning the Addressing Structure
Chapter 11: Network Address Translation for IPv4
Prepared by :Adeel Ahmad
Presentation transcript:

CCNA4-1 Chapter 7-1 IP Addressing Services Scaling Networks With Network Address Translation (NAT)

CCNA4-2 Chapter 7-1 All public Internet addresses must be registered with a Regional Internet Registry (RIR). Organizations can lease public addresses from an ISP. Only the registered holder of a public Internet address can assign that address to a network device. Scaling Networks With NAT

CCNA4-3 Chapter 7-1 Private Internet Addresses: These are reserved private Internet addresses drawn from three blocks. These addresses are for private, internal network use only. RFC 1918 specifies that private addresses are not to be routed over the Internet. Scaling Networks With NAT

CCNA4-4 Chapter 7-1 Private Internet Addresses: Two Issues: You cannot route private addresses over the Internet. There are not enough public addresses to allow organizations to provide one to every one of their hosts. Networks need a mechanism to translate private addresses to public addresses at the edge of their network that works in both directions. Solution – NAT. Scaling Networks With NAT

CCNA4-5 Chapter 7-1 The DHCP server assigns IP dynamic addresses to devices inside the network. NAT-enabled routers retain one or many valid Internet IP addresses outside of the network. When the client sends packets out of the network, NAT translates the internal IP address of the client to an external address. To outside users, all traffic coming to and going from the network has the same IP address or is from the same pool of addresses. What is NAT? Private Address Public Address NATNAT

CCNA4-6 Chapter 7-1 What is NAT? A NAT enabled device typically operates at the border of a stub network. A NAT enabled device typically operates at the border of a stub network. A stub network is a network that has a single connection to its neighbor network. A stub network is a network that has a single connection to its neighbor network.

CCNA4-7 Chapter 7-1 What is NAT? When a host on the inside network wants to access a host on the outside network, the packet is sent to the border gateway router. When a host on the inside network wants to access a host on the outside network, the packet is sent to the border gateway router. The border gateway router performs the NAT process, translating the inside private address to an outside public address. The border gateway router performs the NAT process, translating the inside private address to an outside public address. Inside Private Outside Public

CCNA4-8 Chapter 7-1 What is NAT? The translation process uses an internal translation table. The translation process uses an internal translation table. The contents of the table will vary depending on the type of network translation being implemented. The contents of the table will vary depending on the type of network translation being implemented. We will be looking at the use of static NAT, dynamic NAT and Port Address Translation (PAT). We will be looking at the use of static NAT, dynamic NAT and Port Address Translation (PAT). Inside Private Outside Public

CCNA4-9 Chapter 7-1 NAT Terminology Inside Network: Usually an organization’s LAN. Inside Network: Usually an organization’s LAN. Outside Network: Usually the Internet but it can be any network. Outside Network: Usually the Internet but it can be any network.

CCNA4-10 Chapter 7-1 NAT Terminology Local Addresses: How a node on a network is seen by another node on the same network.

CCNA4-11 Chapter 7-1 NAT Terminology Global Addresses: How a node on one network is seen by a node on another network.

CCNA4-12 Chapter 7-1 NAT Terminology Inside Local Address: Inside Local Address: An RFC 1918 address assigned to a host on an inside network.An RFC 1918 address assigned to a host on an inside network. Inside Global Address: Inside Global Address: A valid public address that the host on the inside network is assigned as it exits the router.A valid public address that the host on the inside network is assigned as it exits the router. Outside Global Address: Outside Global Address: A reachable IP address assigned to a host on the Internet.A reachable IP address assigned to a host on the Internet. Outside Local Address: Outside Local Address: A local address assigned to a host on an outside network.A local address assigned to a host on an outside network. (Use beyond the scope of this course).(Use beyond the scope of this course).

CCNA4-13 Chapter 7-1 How Does NAT Work? DASA R2: I have a packet for the outside network. I must translate the IP address. SendSendDASA

CCNA4-14 Chapter 7-1 How Does NAT Work? DASA R2: I have a packet for the inside network. I must translate the IP address. ReceiveReceiveDASA

CCNA4-15 Chapter 7-1 Dynamic Mapping and Static Mapping Dynamic Mapping: Dynamic Mapping: Mapping of local addresses dynamically to a pool of global addresses.Mapping of local addresses dynamically to a pool of global addresses. The hosts able to use NAT is limited by the number of addresses in the range.The hosts able to use NAT is limited by the number of addresses in the range. If you have allocated 6 public addresses for NAT, any 6 users can use NAT simultaneously.If you have allocated 6 public addresses for NAT, any 6 users can use NAT simultaneously. The NAT device dynamically assigns an address when a request is received. When a session ends, the address is returned to the pool for another user.The NAT device dynamically assigns an address when a request is received. When a session ends, the address is returned to the pool for another user. NAT Table Inside Local Inside Global

CCNA4-16 Chapter 7-1 Dynamic Mapping and Static Mapping Static Mapping: Static Mapping: One to one mapping of local and global addresses.One to one mapping of local and global addresses. The hosts able to use NAT is limited by the static assignment in the table.The hosts able to use NAT is limited by the static assignment in the table. If you have allocated 6 public addresses for NAT, only these 6 users can use NAT.If you have allocated 6 public addresses for NAT, only these 6 users can use NAT. No other network users will have access unless you allocate another global address and add it to the table.No other network users will have access unless you allocate another global address and add it to the table. NAT Table Inside Local Inside Global

CCNA4-17 Chapter 7-1 NAT Overload Port Address Translation (PAT): Port Address Translation (PAT): Allows you to use a single Public IP address and assign it up to 65,536 inside hosts (4,000 is more realistic).Allows you to use a single Public IP address and assign it up to 65,536 inside hosts (4,000 is more realistic). Modifies the TCP/UDP source port to track inside host addresses.Modifies the TCP/UDP source port to track inside host addresses. Tracks and translates:Tracks and translates: Source IP Address.Source IP Address. Destination IP Address.Destination IP Address. TCP/UDP Source Port Number.TCP/UDP Source Port Number. These uniquely identify each connection for each stream of traffic.These uniquely identify each connection for each stream of traffic.

CCNA4-18 Chapter 7-1 NAT Overload Port Address Translation (PAT): Port Address Translation (PAT): SADA : :80 SADA : :80 SADA : :80 SADA : :80

CCNA4-19 Chapter 7-1 NAT Overload Port Address Translation (PAT): Port Address Translation (PAT): SADA : :1555 SADA : :1555 SADA : :1331 SADA : :1331

CCNA4-20 Chapter 7-1 NAT Overload Port Address Translation (PAT): NEXT AVAILABLE PORT Port Address Translation (PAT): NEXT AVAILABLE PORT : :1444

CCNA4-21 Chapter 7-1 Benefits and Drawbacks NAT Benefits: NAT Benefits: Conserves the legally registered addressing scheme.Conserves the legally registered addressing scheme. Increases the flexibility of connections to the public network.Increases the flexibility of connections to the public network. Provides consistency for internal network addressing schemes.Provides consistency for internal network addressing schemes. Provides network security.Provides network security.

CCNA4-22 Chapter 7-1 Benefits and Drawbacks NAT Drawbacks: NAT Drawbacks: Performance is degraded.Performance is degraded. End-to-end functionality is degraded.End-to-end functionality is degraded. End-to-end trace is lost.End-to-end trace is lost. Tunneling is more complicated.Tunneling is more complicated. Initiating TCP connections can be disrupted.Initiating TCP connections can be disrupted. TCP initiated from the outside or stateless protocols using UDP.TCP initiated from the outside or stateless protocols using UDP. Network architectures may have to be rebuilt.Network architectures may have to be rebuilt.

CCNA4-23 Chapter 7-1 Configuring Static NAT Step 1: Step 1: Specify static translation between an inside local and inside global address.Specify static translation between an inside local and inside global address. ip nat inside source static local-ip global-ip Port Address – Inside Global address from ISP. ISP routing table: via ISP routing table: via Inside Local RA(config)#ip nat inside source static

CCNA4-24 Chapter 7-1 Configuring Static NAT Step 2: Step 2: Mark the router interfaces as an inside interface or an outside interface.Mark the router interfaces as an inside interface or an outside interface. ISP routing table: via ISP routing table: via RA(config)#interface fa0/0 RA(config-if)#ip address RA(config-if)#ip nat inside RA(config)#interface fa0/0 RA(config-if)#ip address RA(config-if)#ip nat inside RA(config)#interface s0/0/0 RA(config-if)#ip address RA(config-if)#ip nat outside RA(config)#interface s0/0/0 RA(config-if)#ip address RA(config-if)#ip nat outside

CCNA4-25 Chapter 7-1 Configuring Static NAT Summary: Summary: will always translate to

CCNA4-26 Chapter 7-1 Configuring Dynamic NAT 1.Define a named address pool of outside addresses to be used for translation. 2.Define an access list to specify those inside addresses that are eligible for translation. 3.Specify dynamic translation between the inside addresses allowed by the access list and the pool of outside addresses. 4.Mark the interfaces as inside or outside.

CCNA4-27 Chapter 7-1 Configuring Dynamic NAT Step 1: Step 1: Define a named address pool of outside addresses to be used for translation.Define a named address pool of outside addresses to be used for translation. ip nat pool name start-ip end-ip (netmask netmask | prefix-length prefix-length) Address space from ISP = /24 IP Address assigned to the interface. ISP Routing table via ISP Routing table via

CCNA4-28 Chapter 7-1 Configuring Dynamic NAT Step 1: Step 1: Define a named address pool of outside addresses to be used for translation.Define a named address pool of outside addresses to be used for translation. ip nat pool NAT-POOL netmask netmask NameName RangeRange MaskMask ISP Routing table via ISP Routing table via IP Address assigned to the interface. Address space from ISP = /24

CCNA4-29 Chapter 7-1 Configuring Dynamic NAT Step 2: Step 2: Define an access list to specify those inside addresses that are eligible for translation.Define an access list to specify those inside addresses that are eligible for translation. access-list access-list-number permit source [source wildcard] ISP Routing table via ISP Routing table via IP Address assigned to the interface. Address space from ISP = /24

CCNA4-30 Chapter 7-1 Step 2: Step 2: Define an access list to specify those inside addresses that are eligible for translation.Define an access list to specify those inside addresses that are eligible for translation. access-list 1 permit Configuring Dynamic NAT ISP Routing table via ISP Routing table via IP Address assigned to the interface. Allows ALL inside network addresses to be translated. Address space from ISP = /24

CCNA4-31 Chapter 7-1 Configuring Dynamic NAT Step 2: Step 2: Specify dynamic translation between the inside addresses allowed by the access list and the pool of outside addresses.Specify dynamic translation between the inside addresses allowed by the access list and the pool of outside addresses. ip nat inside source list access-list-number pool pool-name ISP Routing table via ISP Routing table via IP Address assigned to the interface. Address space from ISP = /24

CCNA4-32 Chapter 7-1 Configuring Dynamic NAT Step 3: Step 3: Specify dynamic translation between the inside addresses allowed by the access list and the pool of outside addresses.Specify dynamic translation between the inside addresses allowed by the access list and the pool of outside addresses. ip nat inside source list 1 pool NAT-POOL1 ISP Routing table via ISP Routing table via IP Address assigned to the interface. From Step 2 From Step 1 Address space from ISP = /24

CCNA4-33 Chapter 7-1 Configuring Dynamic NAT Step 4: Step 4: Mark the interfaces as inside or outside.Mark the interfaces as inside or outside. ISP Routing table via ISP Routing table via RA(config)#interface fa0/0 RA(config-if)#ip address RA(config-if)#ip nat inside RA(config)#interface fa0/0 RA(config-if)#ip address RA(config-if)#ip nat inside RA(config)#interface s0/0/0 RA(config-if)#ip address RA(config-if)#ip nat outside RA(config)#interface s0/0/0 RA(config-if)#ip address RA(config-if)#ip nat outside

CCNA4-34 Chapter 7-1 Configuring Dynamic NAT Summary: Summary: All inside hosts are eligible for NAT.

CCNA4-35 Chapter 7-1 Configuring NAT Overload (PAT) There are two possible ways to configure overloading. There are two possible ways to configure overloading. It depends on how the ISP allocates public IP addresses.It depends on how the ISP allocates public IP addresses. The ISP allocates one public IP address to the organization.The ISP allocates one public IP address to the organization. The ISP allocates more than one public IP address.The ISP allocates more than one public IP address. In either case, the configuration will include the overload keyword.In either case, the configuration will include the overload keyword. This keyword specifies to the router that Port Address Translation (PAT) is to be used.This keyword specifies to the router that Port Address Translation (PAT) is to be used.

CCNA4-36 Chapter 7-1 Configuring NAT Overload (PAT) The ISP allocates one public IP address to the organization. The ISP allocates one public IP address to the organization. 1.Assign the IP address received from the ISP as the IP address of the outside interface. 2.Define a standard access list permitting those addresses to be translated. 3.Establish dynamic translation specifying the access list and the actual interface instead of a pool of addresses and include the overload keyword. 4.Identify the inside and outside interfaces.

CCNA4-37 Chapter 7-1 Configuring NAT Overload (PAT) The ISP allocates one public IP address to the organization. The ISP allocates one public IP address to the organization. Assigned by ISP

CCNA4-38 Chapter 7-1 Configuring NAT Overload (PAT) The ISP allocates more than one public IP address. The ISP allocates more than one public IP address.

CCNA4-39 Chapter 7-1 Verifying NAT and NAT Overload show ip nat translations show ip nat translations

CCNA4-40 Chapter 7-1 Verifying NAT and NAT Overload show ip nat statistics show ip nat statistics

CCNA4-41 Chapter 7-1 Verifying NAT and NAT Overload clear ip nat translation clear ip nat translation

CCNA4-42 Chapter 7-1 Troubleshooting NAT and NAT Overload show ip nat translations show ip nat translations clear ip nat translation clear ip nat translation debug ip nat debug ip nat

CCNA4-43 Chapter 7-1 Port Forwarding Port Forwarding Port forwarding is the act of forwarding a network port from one network node to another. Port forwarding is the act of forwarding a network port from one network node to another. A packet sent to the public IP address and port of a router can be forwarded to a private IP address and port in inside network. A packet sent to the public IP address and port of a router can be forwarded to a private IP address and port in inside network. Port forwarding is helpful in situations where servers have private addresses, not reachable from the outside networks. Port forwarding is helpful in situations where servers have private addresses, not reachable from the outside networks.

CCNA4-44 Chapter 7-1 Port Forwarding SOHO Example

CCNA4-45 Chapter 7-1 Port Forwarding Configuring Port Forwarding with IOS In IOS, Port forwarding is essentially a static NAT translation with a specified TCP or UDP port number.

CCNA4-46 Chapter 7-1 Configuring NAT and IPv6 NAT for IPv6? NAT is a workaround for IPv4 address scarcity. NAT is a workaround for IPv4 address scarcity. IPv6 with a 128-bit address provides 340 undecillion addresses. IPv6 with a 128-bit address provides 340 undecillion addresses. Address space is not an issue for IPv6. Address space is not an issue for IPv6. IPv6 makes IPv4 public-private NAT unnecessary by design; however, IPv6 does implement a form of private addresses, and it is implemented differently than they are for IPv4. IPv6 makes IPv4 public-private NAT unnecessary by design; however, IPv6 does implement a form of private addresses, and it is implemented differently than they are for IPv4.

CCNA4-47 Chapter 7-1 Configuring NAT and IPv6 IPv6 Unique Local Addresses IPv6 unique local addresses (ULAs) are designed to allow IPv6 communications within a local site. IPv6 unique local addresses (ULAs) are designed to allow IPv6 communications within a local site. ULAs are not meant to provide additional IPv6 address space. ULAs are not meant to provide additional IPv6 address space. ULAs have the prefix FC00::/7, which results in a first hextet range of FC00 to FDFF. ULAs have the prefix FC00::/7, which results in a first hextet range of FC00 to FDFF. ULAs are also known as local IPv6 addresses (not to be confused with IPv6 link-local addresses). ULAs are also known as local IPv6 addresses (not to be confused with IPv6 link-local addresses).

CCNA4-48 Chapter 7-1 Configuring NAT and IPv6 NAT for IPv6 IPv6 also uses NAT, but in a much different context. IPv6 also uses NAT, but in a much different context. In IPv6, NAT is used to provide transparent communication between IPv6 and IPv4. In IPv6, NAT is used to provide transparent communication between IPv6 and IPv4. NAT64 is not intended to be a permanent solution; it is meant to be a transition mechanism. NAT64 is not intended to be a permanent solution; it is meant to be a transition mechanism. Network Address Translation-Protocol Translation (NAT-PT) was another NAT-based transition mechanism for IPv6, but is now deprecated by IETF. Network Address Translation-Protocol Translation (NAT-PT) was another NAT-based transition mechanism for IPv6, but is now deprecated by IETF. NAT64 is now recommended. NAT64 is now recommended.

CCNA4-49 Chapter 7-1 Configuring NAT and IPv6 NAT for IPv6