Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College.

Slides:



Advertisements
Similar presentations
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
Advertisements

© 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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Cisco Certified Network Associate
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0.
DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing and Switching Essentials.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CMPSC-358 (CCNA 4 ) Spring 2007.
Subnetting.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition Chapter 9 Network Services.
DHCP (Dynamic Host Configuration Protocol) RD-CSY /09.
Lecture Week 7 Implementing IP Addressing Services.
Andrew Smith 1 NAT and DHCP ( Network Address Translation and Dynamic Host Configuration Protocol )
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Addressing Networking for Home and Small Businesses – Chapter.
4: Addressing Working At A Small-to-Medium Business or ISP.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
DHCP: Dynamic Host Configuration Protocol
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.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0 Module 1 Scaling IP Addresses.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
CCNA4-1 Chapter 7-1 Network & IT Operations – Week 8 IP Addressing Services DHCP – (Homework)
Introduction to Network Address Translation
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting.
© 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.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
1 of 18 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0: Module 1; 1.2.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0 Module 1 Scaling IP Addresses.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
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.
NAT/PAT by S K SATAPATHY
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
1 Pertemuan 14 Scaling Networks with NAT and PAT.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
CHAPTER 10: DHCP Routing & Switching. Objectives 10.0 Introduction 10.1 Dynamic Host Configuration Protocol v Dynamic Host Configuration Protocol.
CCNA4-1 Chapter 7-1 IP Addressing Services Scaling Networks With Network Address Translation (NAT)
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.
Instructor Materials Chapter 8: DHCP
IP Addressing Services Part I
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
Instructor Materials Chapter 9: NAT for IPv4
NAT / PAT.
Chapter 10: DHCP Routing & Switching Chapter 10: DHCP
Routing and Switching Essentials v6.0
BOOTP and DHCP Objectives
Routing and Switching Essentials v6.0
Implementing IP Addressing Services
CIS 82 Routing Protocols and Concepts Chapter 11 NAT
NAT / PAT.
By - Ricardo Sanchez, Ken Wolters and William Hibbard
Cabrillo College Building Cisco Remote Access Network
Instructor Materials Chapter 9: NAT for IPv4
Implementing IP Addressing Services
Chapter 11: Network Address Translation for IPv4
Configuring Cisco 2650 Router By John Teissonniere Manny Jacome
Presentation transcript:

Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College

Rick Graziani Overview Identify private IP addresses as described in RFC 1918 Discuss characteristics of NAT and PAT Explain the benefits of NAT Explain how to configure NAT and PAT, including static translation, dynamic translation, and overloading Identify the commands used to verify NAT and PAT configuration List the steps used to troubleshoot NAT and PAT configuration Discuss the advantages and disadvantages of NAT Describe the characteristics of DHCP Explain the differences between BOOTP and DHCP Explain the DHCP client configuration process Configure a DHCP server Verify DHCP operation Troubleshoot a DHCP configuration Explain DHCP relay requests

Rick Graziani Private addressing – : /12 –Where does the /12 come from? 12 bits in common – – – /12

Rick Graziani Introducing NAT and PAT NAT is designed to conserve IP addresses and enable networks to use private IP addresses on internal networks. These private, internal addresses are translated to routable, public addresses. NAT, as defined by RFC 1631, is the process of swapping one address for another in the IP packet header. In practice, NAT is used to allow hosts that are privately addressed to access the Internet. NAT translations can occur dynamically or statically. The most powerful feature of NAT routers is their capability to use port address translation (PAT), which allows multiple inside addresses to map to the same global address. This is sometimes called a many-to-one NAT.

NAT: Local and Global Definitions Rick Graziani Term Definitions Cisco defines these terms as: Inside local address —The IP address assigned to a host on the inside network. This is the address configured as a parameter of the computer OS or received via dynamic address allocation protocols such as DHCP. The address is likely not a legitimate IP address assigned by the Network Information Center (NIC) or service provider. Inside global address —A legitimate IP address assigned by the NIC or service provider that represents one or more inside local IP addresses to the outside world. Outside local address —The IP address of an outside host as it appears to the inside network. Not necessarily a legitimate address, it is allocated from an address space routable on the inside. Outside global address —The IP address assigned to a host on the outside network by the host owner. The address is allocated from a globally routable address or network space.

NAT: Local and Global Definitions (cont) These definitions still leave a lot to be interpreted. For this example, this document redefines these terms by first defining local address and global address. Keep in mind that the terms inside and outside are NAT definitions. Interfaces on a NAT router are defined as inside or outside with the NAT configuration commands, ip nat inside and ip nat outside. Networks to which these interfaces connect can then be thought of as inside networks or outside networks, respectively. Local address—A local address is any address that appears on the inside portion of the network. Global address—A global address is any address that appears on the outside portion of the network. Pkts sourced on the inside portion of the NW have an inside local address as the src address and an outside local address as the dest addr of the packet, while the packet resides on the inside portion of the NW. When that same packet gets switched to the outside network, the source of the packet is now known as the inside global address and the dest of the packet is known as the outside global address. Rick Graziani

7 Examples: These sections examine these terms more closely and use this topology and examples. Conversely, when a packet is sourced on the outside portion of the network, while it is on the outside network, its source address is known as the outside global address. The destination of the packet is known as the inside global address. When the same packet gets switched to the inside network, the source address is known as the outside local address and the destination of the packet is known as the inside local address.

Rick Graziani NAT Example Inside local address – The IP address assigned to a host on the inside network. This address is likely to be an RFC 1918 private address. Inside global address – A legitimate (Internet routable or public) IP address assigned the service provider that represents one or more inside local IP addresses to the outside world. Outside local address – The IP address of an outside host as it is known to the hosts on the inside network.

Rick Graziani NAT Example The translation from Private source IP address to Public source IP address

Rick Graziani NAT Example Inside local address – The IP address assigned to a host on the inside network. Inside global address – A legitimate (Internet routable or public) IP address assigned the service provider. Outside global address – The IP address assigned to a host on the outside network. The owner of the host assigns this address. 12

Rick Graziani NAT Example Translation back, from Public destination IP address to Private destination IP address

Rick Graziani NAT Example NAT allows you to have more than your allocated number of IP addresses by using RFC 1918 address space with smaller mask. However, because you have to use your Public IP addresses for the Internet, NAT still limits the number of hosts you can have access the Internet at any one time (depending upon the number of hosts in your public network mask.)

Rick Graziani PAT – Port Address Translation PAT (Port Address Translation) allows you to use a single Public IP address and assign it up to 65,536 inside hosts (4,000 is more realistic). PAT modifies the TCP/UDP source port to track inside Host addresses. Tracks and translates SA, DA and SP (which uniquely identifies each connection) for each stream of traffic.

Rick Graziani PAT Example NAT/PAT table maintains translation of: DA, SA, SP 12

Rick Graziani PAT Example 43 NAT/PAT table maintains translation of: SA (DA), DA (SA), DP (SP)

Rick Graziani PAT – Port Address Translation With PAT a multiple private IP addresses can be translated by a single public address (many-to-one translation). This solves the limitation of NAT which is one-to-one translation.

Rick Graziani PAT – Port Address Translation From CCNP 2 curriculum” “As long as the inside global port numbers are unique for each inside local host, NAT overload will work. For example, if the host at and both use TCP port 1234, the NAT router can create the extended table entries mapping :1234 to :1234 and :1234 to :1235. In fact, NAT implementations do not necessarily try to preserve the original port number.” 12

Rick Graziani Configuring Static NAT

Rick Graziani Configuring Dynamic NAT Translate to these outside addresses Start here Source IP address must match here The network address space you have received from ARIN or your ISP is /24. In ISP’s routing table: /24 via ISP

Rick Graziani Configure PAT – Overload In this example a single Public IP addresses is used, using PAT, source ports, to differentiate between connection streams is the address your ISP has assigned you. Instead of a host, you put a router there, running PAT so you can have multiple hosts share that same address.

Rick Graziani Configure PAT – Overload This is a different example, using the IP address of the outside interface instead specifying an IP address

Rick Graziani NAT/PAT Clear Commands

Rick Graziani Verifying NAT/PAT

Rick Graziani Troubleshooting NAT/PAT

Rick Graziani Issues with NAT/PAT NAT also forces some applications that use IP addressing to stop functioning because it hides end-to-end IP addresses. Applications that use physical addresses instead of a qualified domain name will not reach destinations that are translated across the NAT router. Sometimes, this problem can be avoided by implementing static NAT mappings.

DHCP Dynamic Host Configuration Protocol The first several slides should be a review of DHCP from CCNA 1. We will start with the discussion of configuring DHCP on a Cisco router. Please read the online curriculum if you need a review.

Rick Graziani Introducing DHCP

Rick Graziani BOOTP and DHCP differences There are two primary differences between DHCP and BOOTP: DHCP defines mechanisms through which clients can be assigned an IP address for a finite lease period. –This lease period allows for reassignment of the IP address to another client later, or for the client to get another assignment, if the client moves to another subnet. –Clients may also renew leases and keep the same IP address. DHCP provides the mechanism for a client to gather other IP configuration parameters, such as WINS and domain name.

Rick Graziani Major DHCP features

Rick Graziani DHCP Operation

Rick Graziani Configuring DHCP Note: The network statement enables DHCP on any router interfaces belonging to that network. –The router will act as a DHCP server on that interface. –It is also the pool of addresses that the DHCP server will use.

Rick Graziani Configuring DHCP The ip dhcp excluded-address command configures the router to exclude an individual address or range of addresses when assigning addresses to clients. Other IP configuration values such as the default gateway can be set from the DHCP configuration mode. The DHCP service is enabled by default on versions of Cisco IOS that support it. To disable the service, use the no service dhcp command. Use the service dhcp global configuration command to re-enable the DHCP server process.

Rick Graziani Configuring DHCP DHCP options

Rick Graziani Verifying and Troubleshooting DHCP

Rick Graziani DHCP Relay DHCP clients use IP broadcasts to find the DHCP server on the segment. What happens when the server and the client are not on the same segment and are separated by a router? –Routers do not forward these broadcasts. When possible, administrators should use the ip helper-address command to relay broadcast requests for these key UDP services.

Rick Graziani Using helper addresses

Rick Graziani Configuring IP helper addresses By default, the ip helper-address command forwards the eight UDPs services.

Rick Graziani Configuring IP helper addresses To configure RTA e0, the interface that receives the Host A broadcasts, to relay DHCP broadcasts as a unicast to the DHCP server, use the following commands: RTA(config)#interface e0 RTA(config-if)#ip helper-address BroadcastUnicast

Rick Graziani Configuring IP helper addresses Helper address configuration that relays broadcasts to all servers on the segment. RTA(config)#interface e0 RTA(config-if)#ip helper-address But will RTA forward the broadcast? BroadcastUnicast

Rick Graziani Directed Broadcast Notice that the RTA interface e3, which connects to the server farm, is not configured with helper addresses. However, the output shows that for this interface, directed broadcast forwarding is disabled. This means that the router will not convert the logical broadcast into a physical broadcast with a Layer 2 address of FF-FF-FF-FF-FF-FF. To allow all the nodes in the server farm to receive the broadcasts at Layer 2, e3 will need to be configured to forward directed broadcasts with the following command: RTA(config)#interface e3 RTA(config-if)#ip directed-broadcast

Rick Graziani Configuring IP helper addresses Helper address configuration that relays broadcasts to all servers on the segment. RTA(config)#interface e0 RTA(config-if)#ip helper-address RTA(config)#interface e3 RTA(config-if)#ip directed-broadcast L3 BroadcastL2 Broadcast

Rick Graziani Role of DHCP/BootP Relay Agent Routers, by default, will not forward broadcast packets. Since DHCP client messages use the destination IP address of (all Nets Broadcast), DHCP clients will not be able to send requests to a DHCP server on a different subnet unless the DHCP/BootP Relay Agent is configured on the router. The DHCP/BootP Relay Agent will forward DHCP requests on behalf of a DHCP client to the DHCP server. The DHCP/BootP Relay Agent will append its own IP address to the source IP address of the DHCP frames going to the DHCP server. This allows the DHCP server to respond via unicast to the DHCP/BootP Relay Agent. The DHCP/BootP Relay Agent will also populate the Gateway IP address field with the IP address of the interface on which the DHCP message is received from the client. The DHCP server uses the Gateway IP address field to determine the subnet from which the DHCPDISCOVER, DHCPREQUEST, or DHCPINFORM message originates a00800f0804.shtml#roledhcpbootprelay

Rick Graziani Role of DHCP/BootP Relay Agent DHCP Packet

Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College