Download - Lecture14: DHCP
![Page 1: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/1.jpg)
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 1
Lecture14:DHCP
Switched NetworksAssistant Professor Pongpisit Wuttidittachotti, Ph.D.Faculty of Information TechnologyKing Mongkut's University of Technology North Bangkok (KMUTNB)
![Page 2: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/2.jpg)
Presentation_ID 2© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Chapter 77.0 Introduction
7.1 Dynamic Host Configuration Protocol v4
7.2 Dynamic Host Configuration Protocol v6
7.3 Summary
![Page 3: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/3.jpg)
Presentation_ID 3© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
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.
![Page 4: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/4.jpg)
© 2008 Cisco Systems, Inc. All rights reserved. Cisco ConfidentialPresentation_ID 4
7.1 Dynamic Host Configuration Protocol v4
![Page 5: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/5.jpg)
Presentation_ID 5© 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.
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. This method is the most commonly used.
![Page 6: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/6.jpg)
Presentation_ID 6© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationDHCPv4 Operation
![Page 7: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/7.jpg)
Presentation_ID 7© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationDHCPv4 Message Format
![Page 8: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/8.jpg)
Presentation_ID 8© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationFormat DHCPv4 Discover and Offer Messages
![Page 9: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/9.jpg)
Presentation_ID 9© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationConfiguring a DHCPv4 Server
A Cisco router running the 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 the DHCP pool name.3. Define the range of addresses and subnet mask. Use the
default-router command for the default gateway. Optional parameters that can be included in the pool – dns server, domain-name.
To disable DHCP, use the no service dhcp command.
![Page 10: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/10.jpg)
Presentation_ID 10© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
DHCPv4 OperationVerifying a DHCPv4 Server Commands to verify DHCP:
show running-config | section dhcpshow ip dhcp bindingshow ip dhcp server statistics
On the PC, issue the ipconfig /all command.
![Page 11: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/11.jpg)
Presentation_ID 11© 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 12: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/12.jpg)
Presentation_ID 12© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Configuring a DHCPv4 Client Configuring a Router as a DHCPv4 Client
![Page 13: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/13.jpg)
Presentation_ID 13© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Troubleshooting Tasks
![Page 14: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/14.jpg)
Presentation_ID 14© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Verifying the Router DHCPv4 Configuration
![Page 15: Lecture14: DHCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56816717550346895ddb8803/html5/thumbnails/15.jpg)
Presentation_ID 15© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential
Troubleshoot DHCPv4 Debugging DHCPv4