CIS 82 Routing Protocols and Concepts Chapter 8 DHCP

Slides:



Advertisements
Similar presentations
DHCPv6.
Advertisements

Implementing Inter-VLAN Routing
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CCNA 4 version 3.0 Rick Graziani Cabrillo College.
DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Lecture14: DHCP Switched Networks Assistant Professor Pongpisit Wuttidittachotti,
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing and Switching Essentials.
Dynamic Host Configuration Protocol (DHCP)
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP CMPSC-358 (CCNA 4 ) Spring 2007.
Hands-On Microsoft Windows Server 2003 Networking Chapter 5 Dynamic Host Configuration Protocol.
DHCP (Dynamic Host Configuration Protocol) RD-CSY /09.
Cisco Confidential 1 © 2010 Cisco and/or its affiliates. All rights reserved. CCNA DHCP Deepdive November, 2011 Jaskaran Kalsi & Anton Merckushov Assoc.
1 Dynamic Host Configuration Protocol (DHCP). 2 Dynamic Assignment of IP addresses Dynamic assignment of IP addresses is desirable for several reasons:
Chapter Overview Understanding DHCP Configuring a DHCP Server
DHCP Dynamic Host Configuration Protocol.
Managing DHCP. 2 DHCP Overview Is a protocol that allows client computers to automatically receive an IP address and TCP/IP settings from a Server Reduces.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 4: Dynamic Host Configuration Protocol.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 16 Dynamic Host Configuration Protocol (DHCP)
Dynamic Host Configuration Protocol (DHCP)
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 8 The Dynamic Host Configuration Protocol (DHCP)
1 Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about dynamic assignment of IP addresses with DHCP.
CCNA4-1 Chapter 7-1 Network & IT Operations – Week 8 IP Addressing Services DHCP – (Homework)
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing and Switching Essentials.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implementing IP Addressing Services Accessing the WAN – Chapter 7.
1 CS 4396 Computer Networks Lab Dynamic Host Configuration Protocol (DHCP)
1 of 18 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 4 v3.0: Module 1; 1.2.
1 Microsoft Windows 2000 Network Infrastructure Administration Chapter 10 Implementing Dynamic Host Configuration Protocol (DHCP)
Why Use DHCP? DHCP reduces the complexity and amount of administrative work by using automatic TCP/IP configuration Manual TCP/IP Configuration IP addresses.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 4 Installing and Configuring the Dynamic Host Configuration Protocol.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
Module 2: Allocating IP Addressing by Using Dynamic Host Configuration Protocol (DHCP)
Chapter 17 BOOTP and DHCP.
1 Network Address Translation (NAT) and Dynamic Host Configuration Protocol (DHCP) Relates to Lab 7. Module about private networks and NAT.
CIS 856: TCP/IP and Upper Layer Protocols Karthik Ravindra Nov 11, 2008 Dynamic Host Configuration Protocol [DHCP] - RFC 2131.
Allocating IP Addressing by Using Dynamic Host Configuration Protocol.
1 Objectives Discuss the basics of Dynamic Host Configuration Protocol (DHCP) Describe the components and processes of DHCP Install DHCP in a Windows Server.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
CHAPTER 10: DHCP Routing & Switching. Objectives 10.0 Introduction 10.1 Dynamic Host Configuration Protocol v Dynamic Host Configuration Protocol.
DHCP CONFIGURATION Routing & Switching. DHCPV4 OPERATION CONFIGURING A DHCPV4 SERVER A Cisco router running the Cisco IOS software can be configured to.
1 Kyung Hee University Chapter 16 Host Configuration : BOOTP and DHCP.
Dynamic Host Configuration Protocol
Dynamic Host Configuration Protocol (DHCP)
Ip addressing: dhcp & dns
Implementing IP Addressing Services
Instructor Materials Chapter 8: DHCP
Dynamic Host Configuration Protocol
IP Addressing Services Part I
Introduction to Networking Concepts
Implementing IP Addressing Services
Configuring and Troubleshooting DHCP
Ch. 1 – Scaling IP Addresses NAT/PAT and DHCP
Dynamic Host Configuration Protocol (DHCP)
Chapter 10: DHCP Routing & Switching Chapter 10: DHCP
Chapter 9 Objectives Understand TCP/IP Protocol.
Net 431 D: ADVANCED COMPUTER NETWORKS
Routing and Switching Essentials v6.0
CIS 82 Routing Protocols and Concepts Chapter 11 NAT
By - Ricardo Sanchez, Ken Wolters and William Hibbard
Chapter 16 Host Configuration : BOOTP and DHCP
Allocating IP Addressing by Using Dynamic Host Configuration Protocol
Overview Multimedia: The Role of DHCP in the Network Infrastructure
Chapter 6 Objectives Describe common issues related to NAT/PAT and DHCP. Identify common IPv6 routing and tunneling issues.
Ip addressing: dhcp & dns
Configuring Cisco 2650 Router By John Teissonniere Manny Jacome
Dynamic Host Configuration Protocol (DHCP)
Presentation transcript:

CIS 82 Routing Protocols and Concepts Chapter 8 DHCP Rick Graziani Cabrillo College graziani@cabrillo.edu Spring 2018

Chapter 7: Objectives Describe the operation of DHCPv4 in a small-to-medium-sized business network. Configure a router as a DHCPv4 server. Configure a router as a DHCPv4 client. Troubleshoot a DHCP configuration for IPv4 in a switched network. Explain the operation of DHCPv6. Configure a stateless DHCPv6 for a small-to-medium-sized business. Configure a stateful DHCPv6 for a small-to-medium-sized business. Troubleshoot a DHCP configuration for IPv6 in a switched network. Chapter 1 Objectives

DHCP Operation and Message Format

How Does DHCP Work? A DHCP Server must be available. Must have pre-configured range (scope) of addresses.

DHCP Operation DHCPDISCOVER Broadcast DHCPOFFER Unicast DHCPREQUEST IP address: 192.168.10.15 Subnet mask: 255.255.255.0 Default Gateway: 192.168.10.1 Lease time: 3 days DHCPDISCOVER Broadcast DHCPOFFER Unicast DHCPREQUEST Broadcast DHCPACK Unicast DHCPREQUEST Unicast DHCPACK Unicast

Configuring DHCP

Router DHCP Roles In branch office scenarios, it is typical to have Cisco IOS routers or firewalls acting as the DHCP server. In that case, troubleshooting DHCP is critical because it will affect the operations of all hosts in the branch, including IP phones and video devices. In some other scenarios, the routers may act as DHCP clients. An example of that is a branch or home office router using broadband connectivity such as DSL or cable and obtaining IP address and IP parameters from the service provider's DHCP server. The router may also act as a broker for DHCP transactions, located in the path of DHCP requests. This is a typical scenario in networks where DHCP servers are centralized and serve multiple network segment and the router acts as a DHCP relay agent. In all three scenarios, typical DHCP issues can come from multiple sources. It is crucial to apply a structured troubleshooting method and to know the inner workings of the protocol.

IOS DHCP Server The DHCP service is enabled by default on newer IOS. To disable DHCP, in global config mode: no service dhcp To re-enable: service dhcp global

Step 1: Exclude Addresses From the Pool Define a range of addresses that DHCP is not to allocate. These are usually static addresses reserved for the router interface, switch management IP address, servers, and local network printers. [7.1.4.1 C] Static Notes: This page has clickable tabs. Reuse CCNA4 1.2.5 figure 2 R1(config)#ip dhcp excluded-address low-address [high-address] R1(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.9 R1(config)# ip dhcp excluded-address 192.168.10.254

Step 2: Create the Address Pool Create the DHCP pool using the ip dhcp pool command. Enters you into DHCP configuration mode R1(config)#ip dhcp pool POOL-NAME [7.1.4.1 C] Static Notes: This page has clickable tabs. Reuse CCNA4 1.2.5 figure 2 R1(config)#ip dhcp pool LAN-POOL-1 R1(dhcp-config)#

Step 3: Configure the Specifics of the Pool Enter DHCP configuration mode and configure the specifics. R1(dhcp-config)# Tasks Command Define the address pool network network-number [mask | /prefix-length] Define the default gateway. default-router address [address2...address8] Optional Tasks Command Define a DNS server. dns-server address [address2...address8] option code [instance number] {ascii string | hex string | ip-address} Define the domain name. domain-name domain Define the duration of the DHCP lease. lease {days [hours] [minutes] | infinite} Define an option code option code [instance number] {ascii string | hex string | ip-address} option 150 ip 192.168.1.254

DHCP Parameters and Options DHCP Option Code Description Subnet Mask 1 Specifies the subnet mask for the client to use (as per RFC 950) Router 3 The list of routers the client can use (usually, in order of preference) Domain Name Server 6 The list of DNS servers the client can use (usually, in order of preference) ARP Cache Timeout 35 Specifies the timeout (seconds) for ARP cache entries IP Address Lease Time 51 Specifies the period over which the IP address is leased (it must be renewed) Relay Agent Information 82 Information about the port from which the DHCP request originates TFTP Server IP Address 150 Typically used by devices such as IP Phones to download their configuration files DHCP troubleshooting includes vendor-specific and function-specific DHCP options. DHCP options have historically been an integral part of the protocol, because they are used to deliver parameters in addition to the traditional IP address, subnet mask, default gateway, and DNS server address. Some options aim at tuning the DHCP operation, or even the TCP/IP operation. Some DHCP options are required for certain other protocols or applications to function properly. The table lists some important DHCP configured parameters and options.

Verification Commands R1# show ip dhcp ? binding DHCP address bindings conflict DHCP address conflicts database DHCP database agents import Show Imported Parameters pool DHCP pools information relay Miscellaneous DHCP relay information server Miscellaneous DHCP server information snooping DHCP snooping R1# show ip dhcp

show ip dhcp Commands show ip dhcp server statistics Displays counts for server statistics and messages sent and received for an IOS-based DHCP server. show ip dhcp binding Displays DHCP binding information for IP address assignment and subnet allocation. show ip dhcp conflict Displays address conflicts found by a Cisco IOS DHCP server when addresses are offered to the client. show ip dhcp pool name Displays the subnets pool allocated and the current utilization level for the pool or all the pools if the name argument is not used. show ip dhcp conflict: Displays address conflicts found by a Cisco IOS DHCP server when addresses are offered to the client. The server uses ping to detect conflicts. The client uses gratuitous ARP to detect clients. If an address conflict is detected, the address is removed from the pool and the address is not assigned until an administrator resolves the conflict.

DHCP Configuration Example Exclude the first 9 addresses and the last host address. Call the pool: LAN-POOL-10 Assign the network address Identify the default router. Configure the domain name span.com [7.1.4.1 D] Static Notes: This page has clickable tabs. Reuse CCNA4 1.2.5 figure 2 R1(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.9 R1(config)# ip dhcp excluded-address 192.168.10.254 R1(config)# ip dhcp pool LAN-POOL-10 R1(dhcp-config)# network 192.168.10.0 255.255.255.0 R1(dhcp-config)# default-router 192.168.10.1 R1(dhcp-config)# domain-name span.com R1(dhcp-config)# end

Before PC1 Boots show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name R1# R1# show ip dhcp server statistics Memory usage 23543 Address pools 1 Database agents 0 Automatic bindings 0 Manual bindings 0 Expired bindings 0 Malformed messages 0 Secure arp entries 0 Message Received BOOTREQUEST 0 DHCPDISCOVER 0 DHCPREQUEST 0 DHCPDECLINE 0 DHCPRELEASE 0 DHCPINFORM 0 Message Sent BOOTREPLY 0 DHCPOFFER 0 DHCPACK 0 DHCPNAK 0 R1# A binding is a collection of configuration parameters, including at least an IP address associated with or "bound to" a DHCP client. Bindings are managed by DHCP servers. [7.1.4.2 B] Interactive [Notes:] This page has clickable tabs

After PC1 Boots [7.1.4.2 B] Interactive [Notes:] show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.10.10 0100.e018.5bdd.35 Oct 03 2007 05:05 PM Automatic R1# R1# show ip dhcp server statistics Memory usage 23786 Address pools 1 Database agents 0 Automatic bindings 1 Manual bindings 0 Expired bindings 0 Malformed messages 0 Secure arp entries 0 Message Received BOOTREQUEST 0 DHCPDISCOVER 6 DHCPREQUEST 1 DHCPDECLINE 0 DHCPRELEASE 0 DHCPINFORM 0 Message Sent BOOTREPLY 0 DHCPOFFER 1 DHCPACK 1 DHCPNAK 0 [7.1.4.2 B] Interactive [Notes:] This page has clickable tabs

Verify PC1 C:\Documents and Settings\Bob> ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : ciscolab Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : span.com Description . . . . . . . . . . . : SiS 900 PCI Fast Ethernet Adapter Physical Address. . . . . . . . . : 00-E0-18-5B-DD-35 Dhcp Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IP Address. . . . . . . . . . . . : 192.168.10.10 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.10.1 DHCP Server . . . . . . . . . . . : 192.168.10.1 Lease Obtained. . . . . . . . . . : Tuesday, October 02, 2008 1:06:22 PM Lease Expires . . . . . . . . . . : Wednesday, October 03, 2008 1:06:22 PM C:\Documents and Settings\Bob> [7.1.4.2 D] Interactive [Notes:] This page has clickable tabs. This is also a DOS prompt window.

DHCP Configuration Example Exclude the first 9 addresses and the last host address. Call the pool: LAN-POOL-11 Assign the network address Identify the default router. Configure the domain name span.com [7.1.4.1 D] Static Notes: This page has clickable tabs. Reuse CCNA4 1.2.5 figure 2 R1(config)# ip dhcp excluded-address 192.168.11.1 192.168.11.9 R1(config)# ip dhcp excluded-address 192.168.11.254 R1(config)# ip dhcp pool LAN-POOL-11 R1(dhcp-config)# network 192.168.11.0 255.255.255.0 R1(dhcp-config)# default-router 192.168.11.1 R1(dhcp-config)# domain-name span.com R1(dhcp-config)# end

After PC2 Boots [7.1.4.2 B] Interactive [Notes:] show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.10.10 0100.e018.5bdd.35 Oct 03 2007 06:14 PM Automatic 192.168.11.10 0100.b0d0.d817.e6 Oct 03 2007 06:18 PM Automatic R1# show ip dhcp server statistics Memory usage 25307 Address pools 2 Database agents 0 Automatic bindings 2 Manual bindings 0 Expired bindings 0 Malformed messages 0 Secure arp entries 0 Message Received BOOTREQUEST 0 DHCPDISCOVER 8 DHCPREQUEST 3 DHCPDECLINE 0 DHCPRELEASE 0 DHCPINFORM 0 Message Sent BOOTREPLY 0 DHCPOFFER 3 DHCPACK 3 DHCPNAK 0 [7.1.4.2 B] Interactive [Notes:] This page has clickable tabs

After PC2 Boots R1# show ip dhcp pool Pool LAN-POOL-10 : Utilization mark (high/low) : 100 / 0 Subnet size (first/next) : 0 / 0 Total addresses : 254 Leased addresses : 1 Pending event : none 1 subnet is currently in the pool : Current index IP address range Leased addresses 192.168.10.11 192.168.10.1 - 192.168.10.254 1 Pool LAN-POOL-11 : 192.168.11.11 192.168.11.1 - 192.168.11.254 1 R1# [7.1.4.2 B] Interactive [Notes:] This page has clickable tabs

DHCP Relay

DHCP Problems Sorry, I can’t forward any broadcasts outside of your network subnet … Looking for a DHCP server… [7.1.6.1 A] Static [Notes:] This page has clickable tabs.

DHCP Relay C:\Documents and Settings\Administrator>ipconfig /release Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 0.0.0.0 Subnet Mask . . . . . . . . . . . : 0.0.0.0 Default Gateway . . . . . . . . . : C:\Documents and Settings\Administrator>ipconfig /renew An error occurred while renewing interface Local Area Connection : unable to contact your DHCP server. Request has timed out. C:\Documents and Settings\Administrator> [7.1.6.1 B] Static [Notes:] This page has clickable tabs.

Helper Addresses

DHCP Relay R1# config t R1(config)# interface Fa0/0 R1(config-if)# ip helper-address 192.168.11.5 R1(config-if)# end [7.1.6.1 C] Static [Notes:] This page has clickable tabs.

DHCP Relay C:\Documents and Settings\Administrator> ipconfig /release Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 0.0.0.0 Subnet Mask . . . . . . . . . . . : 0.0.0.0 Default Gateway . . . . . . . . . : C:\Documents and Settings\Administrator> ipconfig /renew IP Address. . . . . . . . . . . . : 192.168.10.11 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.10.1 C:\Documents and Settings\Administrator> [7.1.6.1 D] Static [Notes:] This page has clickable tabs.

Helper Addresses By default, the ip helper-address command forwards the following eight UDP services: Port 37: Time Port 49: TACACS Port 53: DNS Port 67: DHCP/BOOTP client Port 68: DHCP/BOOTP server Port 69: TFTP Port 137: NetBIOS name service Port 138: NetBIOS datagram service

Helper Addresses 123 Use the ip forward-protocol global configuration command to restrict or forward any UDP port in addition to the default eight.

Configuring a DHCP Client

Configuring a DHCP Client Sometimes, Cisco IOS routers in SOHO and branch sites have to be configured in a similar manner. The method used depends on the ISP. However, in its simplest configuration, the Ethernet interface is used to connect to a cable modem. To configure an Ethernet interface as a DHCP client, the ip address dhcp command must be configured.

Configuring a DHCP Client Fa0/0 SOHO ISP SOHO(config)# interface fa0/0 SOHO(config-if)# ip address dhcp SOHO(config-if)# no shut SOHO(config-if)# *Oct 2 17:57:36.027: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 209.165.201.12, mask 255.255.255.224, hostname SOHO SOHO# show ip int fa0/0 FastEthernet0/0 is up, line protocol is up Internet address is 209.165.201.12/27 Broadcast address is 255.255.255.255 Address determined by DHCP from host 209.165.201.1 MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is not set Proxy ARP is enabled <Output omitted> [7.1.5.1B] Static Notes: This page has clickable tabs