Chapter 10: DHCP
description
Transcript of Chapter 10: DHCP
![Page 1: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/1.jpg)
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 1
Chapter 10:DHCP
Routing and Switching Essentials
![Page 2: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/2.jpg)
Presentation_ID 2© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
IntroductionIntroduction Dynamic Host Configuration Protocol (DHCP) is a
network protocol that provides automatic IP addressing and other information to clients:IP address
Subnet mask (IPv4) or prefix length (IPv6)Default gateway addressDNS server address
Available for both IPv4and IPv6 This chapter explores the functionality, configuration,
and troubleshooting of both DHCPv4 and DHCPv6
![Page 3: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/3.jpg)
Presentation_ID 3© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationIntroducing DHCPv4 DHCPv4 uses three different address allocation methods
Manual Allocation - The administrator assigns a pre-allocated IPv4 address to the client, and DHCPv4 communicates only the IPv4 address to the device.
Automatic Allocation - DHCPv4 automatically assigns a static IPv4 address permanently to a device, selecting it from a pool of available addresses. No lease. Dynamic Allocation - DHCPv4 dynamically assigns, or leases, an IPv4 address from a pool of addresses for a limited period of time chosen by the server, or until the client no longer needs the address. Most commonly used.
![Page 4: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/4.jpg)
Presentation_ID 4© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationIntroducing DHCPv4
![Page 5: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/5.jpg)
Presentation_ID 5© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 Operation DHCPv4 Message Format
![Page 6: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/6.jpg)
Presentation_ID 6© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationDHCPv4 Discover and Offer Messages
![Page 7: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/7.jpg)
Presentation_ID 7© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationConfiguring a DHCPv4 Server A Cisco router running Cisco IOS software can be configured
to act as a DHCPv4 server. To set up DHCP 1.Exclude addresses from the pool.2. Set up DHCP pool name3. Configuring Specific Tasks –define range of addresses and subnet mask. Use default-router command for default gateway. Optional items that can be included in pool – dns server, domain-name
To disable dhcp - no service dhcp
![Page 8: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/8.jpg)
Presentation_ID 8© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationVerifying a DHCPv4 Server Commands to verify DHCP
show running-config | section dhcp show ip dhcp binding show ip dhcp server statistics
On the PC –issue the ipconfig /all command
![Page 9: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/9.jpg)
Presentation_ID 9© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationDHCPv4 Relay
Using an IP helper address enables a router to forward DHCPv4 broadcasts to the DHCPv4 server. Acting as a relay.
![Page 10: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/10.jpg)
Presentation_ID 10© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Configuring a DHCPv4 client Configuring a Router as DHCPv4 client
![Page 11: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/11.jpg)
Presentation_ID 11© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Troubleshooting Tasks
![Page 12: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/12.jpg)
Presentation_ID 12© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Verify Router DHCPv4 Configuration
![Page 13: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/13.jpg)
Presentation_ID 13© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Debugging DHCPv4
![Page 14: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/14.jpg)
Presentation_ID 14© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6Stateless Address Autoconfiguration (SLAAC)
SLAAC is a method in which a device can obtain an IPv6 global unicast address without the services of a DHCPv6 server.
![Page 15: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/15.jpg)
Presentation_ID 15© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 SLAAC Operation
![Page 16: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/16.jpg)
Presentation_ID 16© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 SLAAC and DHCPv6
![Page 17: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/17.jpg)
Presentation_ID 17© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 SLAAC Option
![Page 18: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/18.jpg)
Presentation_ID 18© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 Stateless DHCP Option
![Page 19: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/19.jpg)
Presentation_ID 19© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 Stateful DHCP Option
![Page 20: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/20.jpg)
Presentation_ID 20© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
SLAAC and DHCPv6 DHCPv6 Operations
![Page 21: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/21.jpg)
Presentation_ID 21© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Stateless DHCPv6 Configuring a Router as a Stateless DHCPv6 Server
![Page 22: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/22.jpg)
Presentation_ID 22© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Stateless DHCPv6 Configuring a Router as a Stateless DHCPv6 Client
Verify the Stateless DHCP Client using:
Show IPv6 interface
Debug ipv6 dhcp detail
![Page 23: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/23.jpg)
Presentation_ID 23© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Stateful DHCPv6 Configuring a Router as a Stateful DHCPv6 Server
![Page 24: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/24.jpg)
Presentation_ID 24© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Stateful DHCPv6 Configuring a Router as a Stateful DHCPv6 Client
Verify Stateful DHCPv6 Server using:
show ipv6 dhcp pool show ipv6 dhcp binding
Verify Stateful DHCPv6 client using:
show ipv6 interface
![Page 25: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/25.jpg)
Presentation_ID 25© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Stateful DHCPv6 Config a Router as a Stateful DHCPv6 Relay Agent
![Page 26: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/26.jpg)
Presentation_ID 26© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshooting DHCPv6 Troubleshooting Tasks
![Page 27: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/27.jpg)
Presentation_ID 27© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshooting DHCPv6 Verify Router DHCPv6 Configuration
![Page 28: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/28.jpg)
Presentation_ID 28© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshooting DHCPv6 Debugging DHCPv6
![Page 29: Chapter 10: DHCP](https://reader035.fdocuments.us/reader035/viewer/2022082203/56816717550346895ddb8852/html5/thumbnails/29.jpg)
Presentation_ID 29© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential