Instructor Materials Chapter 8 DHCP CCNA Routing and

  • Slides: 42
Download presentation
Instructor Materials Chapter 8: DHCP CCNA Routing and Switching Essentials v 6. 0 Presentation_ID

Instructor Materials Chapter 8: DHCP CCNA Routing and Switching Essentials v 6. 0 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1

Chapter 8 - Sections & Objectives 8. 1 DHCPv 4 • Explain how DHCPv

Chapter 8 - Sections & Objectives 8. 1 DHCPv 4 • Explain how DHCPv 4 operates in a small- to medium-sized business network. • Configure a router as a DHCPv 4 server. • Configure a router as a DHCPv 4 client. • Troubleshoot a DHCP configuration for IPv 4 in a switched network. 8. 2 DHCPv 6 Presentation_ID • Explain the operation of DHCPv 6. • Configure stateless DHCPv 6 for a small to medium-sized business. • Configure stateful DHCPv 6 for a small to medium-sized business. • Troubleshoot a DHCP configuration for IPv 6 in a switched network. © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2

8. 1 DHCPv 4 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco

8. 1 DHCPv 4 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3

DHCPv 4 Operation Introducing DHCPv 4 § DHCPv 4: § assigns IPv 4 addresses

DHCPv 4 Operation Introducing DHCPv 4 § DHCPv 4: § assigns IPv 4 addresses and other network configuration information dynamically § useful and timesaving tool for network administrators § dynamically assigns, or leases, an IPv 4 address from a pool of addresses § A Cisco router can be configured to provide DHCPv 4 services. § Administrators configure DHCPv 4 servers so that leases expire. Then the client must ask for another address, although the client is typically reassigned the same address. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4

DHCPv 4 Operation Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential

DHCPv 4 Operation Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5

DHCPv 4 Operation (cont. ) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved.

DHCPv 4 Operation (cont. ) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6

DHCPv 4 Operation DHCPv 4 Message Format Presentation_ID © 2008 Cisco Systems, Inc. All

DHCPv 4 Operation DHCPv 4 Message Format Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7

DHCPv 4 Operation DHCPv 4 Discover and Offer Messages Presentation_ID © 2008 Cisco Systems,

DHCPv 4 Operation DHCPv 4 Discover and Offer Messages Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8

DHCPv 4 Operation DHCPv 4 Discover and Offer Messages (cont. ) Presentation_ID © 2008

DHCPv 4 Operation DHCPv 4 Discover and Offer Messages (cont. ) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9

Configure DHCPv 4 Server Configure a Basic DHCPv 4 Server A Cisco router running

Configure DHCPv 4 Server Configure a Basic DHCPv 4 Server A Cisco router running the Cisco IOS software can be configured to act as a DHCPv 4 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. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10

Configure DHCPv 4 Server Verifying DHCPv 4 § Commands to verify DHCP: show running-config

Configure DHCPv 4 Server Verifying DHCPv 4 § 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. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11

Configure DHCPv 4 Server DHCPv 4 Relay Presentation_ID © 2008 Cisco Systems, Inc. All

Configure DHCPv 4 Server DHCPv 4 Relay Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12

Configure DHCPv 4 Server DHCPv 4 Relay (cont. ) § Using an IP helper

Configure DHCPv 4 Server DHCPv 4 Relay (cont. ) § Using an IP helper address enables a router to forward DHCPv 4 broadcasts to the DHCPv 4 server. Acting as a relay. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13

Configure DHCPv 4 Client Configuring a Router as a DHCPv 4 client Presentation_ID ©

Configure DHCPv 4 Client Configuring a Router as a DHCPv 4 client Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14

Configure DHCPv 4 Client Configuring a Wireless Router as a DHCPv 4 Client Presentation_ID

Configure DHCPv 4 Client Configuring a Wireless Router as a DHCPv 4 Client Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15

Troubleshooting DHCPv 4 Troubleshooting Tasks Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved.

Troubleshooting DHCPv 4 Troubleshooting Tasks Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16

Troubleshooting DHCPv 4 Verify Router DHCPv 4 Configuration Presentation_ID © 2008 Cisco Systems, Inc.

Troubleshooting DHCPv 4 Verify Router DHCPv 4 Configuration Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17

Troubleshooting DHCPv 4 Debugging DHCPv 4 § The figure shows an extended ACL permitting

Troubleshooting DHCPv 4 Debugging DHCPv 4 § The figure shows an extended ACL permitting only packets with UDP destination ports of 67 or 68. These are the typical ports used by DHCPv 4 clients and servers when sending DHCPv 4 messages. The extended ACL is used with the debug ip packet command to display only DHCPv 4 messages. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18

8. 2 DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco

8. 2 DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19

SLAAC and DHCPv 6 Stateless Address Autoconfiguration (SLAAC) § SLAAC uses ICMPv 6 Router

SLAAC and DHCPv 6 Stateless Address Autoconfiguration (SLAAC) § SLAAC uses ICMPv 6 Router Solicitation and Router Advertisement messages to provide addressing and other configuration information that would normally be provided by a DHCP server: Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20

SLAAC and DHCPv 6 SLAAC Operation § A router must have IPv 6 routing

SLAAC and DHCPv 6 SLAAC Operation § A router must have IPv 6 routing enabled before it can send RA messages: Router(config)# ipv 6 unicast-routing Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21

SLAAC and DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco

SLAAC and DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22

SLAAC and DHCPv 6 SLAAC Option § SLAAC is the default option on Cisco

SLAAC and DHCPv 6 SLAAC Option § SLAAC is the default option on Cisco routers. Both the M flag and the O flag are set to 0 in the RA, as shown in the figure. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23

SLAAC and DHCPv 6 Stateless DHCPv 6 Option § To modify the RA message

SLAAC and DHCPv 6 Stateless DHCPv 6 Option § To modify the RA message sent on the interface of a router to indicate stateless DHCPv 6, use the following command: Router(configif)# ipv 6 nd other-config-flag Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24

SLAAC and DHCPv 6 Stateful DHCPv 6 Option § This option is the most

SLAAC and DHCPv 6 Stateful DHCPv 6 Option § This option is the most similar to DHCPv 4. In this case, the RA message informs the client not to use the information in the RA message. All addressing information and configuration information must be obtained from a stateful DHCPv 6 server. Router(config-if)# ipv 6 nd managed-config-flag Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25

SLAAC and DHCPv 6 Operations If stateless or stateful DHCPv 6 is indicated in

SLAAC and DHCPv 6 Operations If stateless or stateful DHCPv 6 is indicated in the RA message, then the device begins DHCPv 6 client/server communications. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26

Stateless DHCPv 6 Configuring a Router as a Stateless DHCPv 6 Server Presentation_ID ©

Stateless DHCPv 6 Configuring a Router as a Stateless DHCPv 6 Server Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27

Stateless DHCPv 6 Configuring a Router as a Stateless DHCPv 6 Client Presentation_ID ©

Stateless DHCPv 6 Configuring a Router as a Stateless DHCPv 6 Client Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28

Stateless DHCPv 6 Verifying Stateless DHCPv 6 Verify the stateless DHCP client using the

Stateless DHCPv 6 Verifying Stateless DHCPv 6 Verify the stateless DHCP client using the following commands: § show ipv 6 interface § debug ipv 6 dhcp detail Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Server Presentation_ID

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Server Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Server (cont.

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Server (cont. ) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Client Presentation_ID

Stateful DHCPv 6 Server Configuring a Router as a Stateful DHCPv 6 Client Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32

Stateful DHCPv 6 Server Verifying Stateful DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc.

Stateful DHCPv 6 Server Verifying Stateful DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33

Stateful DHCPv 6 Server Verifying Stateful DHCPv 6 (cont. ) Presentation_ID © 2008 Cisco

Stateful DHCPv 6 Server Verifying Stateful DHCPv 6 (cont. ) Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34

Stateful DHCPv 6 Configuring a Router as a DHCPv 6 Relay Agent Presentation_ID ©

Stateful DHCPv 6 Configuring a Router as a DHCPv 6 Relay Agent Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35

Troubleshooting DHCPv 6 Troubleshooting Tasks Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved.

Troubleshooting DHCPv 6 Troubleshooting Tasks Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36

Troubleshooting DHCPv 6 Verify Router DHCPv 6 Configuration Presentation_ID © 2008 Cisco Systems, Inc.

Troubleshooting DHCPv 6 Verify Router DHCPv 6 Configuration Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37

Troubleshooting DHCPv 6 Debugging DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights

Troubleshooting DHCPv 6 Debugging DHCPv 6 Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38

8. 3 Summary Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential

8. 3 Summary Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39

Chapter Summary § Explain how DHCPv 4 operates in a small- to medium-sized business

Chapter Summary § Explain how DHCPv 4 operates in a small- to medium-sized business network. § Configure a router as a DHCPv 4 server. § Configure a router as a DHCPv 4 client. § Troubleshoot a DHCP configuration for IPv 4 in a switched network. § Explain the operation of DHCPv 6. § Configure stateless DHCPv 6 for a small to medium-sized business. § Configure stateful DHCPv 6 for a small to medium-sized business. § Troubleshoot a DHCP configuration for IPv 6 in a switched network. Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40

Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43

Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43

Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44

Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44