Configuring DHCP

DHCP Configuration Task List

Configuring a DHCP Server Boot File

The boot file is used to store the boot image for the client. The boot image is generally the operating system the client uses to load. To specify a boot file for the DHCP client, use the following command in DHCP pool configuration mode:

Command

Purpose

 

 

Router(dhcp-config)# bootfile filename

Specifies the name of the file that is used as a boot image.

 

 

Configuring the Number of Ping Packets

By default, the DHCP Server pings a pool address twice before assigning a particular address to a requesting client. If the ping is unanswered, the DHCP Server assumes (with a high probability) that the address is not in use and assigns the address to the requesting client. To change the number of ping packets the DHCP Server should send to the pool address before assigning the address, use the following command in global configuration mode:

Command

Purpose

 

 

Router(config)# ip dhcp ping packets

Specifies the number of ping packets the DHCP Server sends to a pool

number

address before assigning the address to a requesting client. The default is

 

two packets. Setting the count argument to a value of 0 turns off DHCP

 

Server ping operation completely.

 

 

Configuring the Timeout Value for Ping Packets

By default, the DHCP Server waits 500 milliseconds before timing out a ping packet. To change the amount of time the server waits, use the following command in global configuration mode:

Command

Purpose

 

 

Router(config)# ip dhcp ping timeout milliseconds

Specifies the amount of time the DHCP Server must wait before

 

timing out a ping packet. The default is 500 milliseconds.

 

 

Enabling the Cisco IOS DHCP Client on Ethernet Interfaces

To acquire an IP address via DHCP on an Ethernet interface, use the following command in interface configuration mode:

Command

Purpose

 

 

Router(config-if)#ip address dhcp [client-id interface name]

Specifies that the Ethernet interface acquires an IP

[hostname host-name]

address through DHCP.

 

 

Cisco IOS IP Configuration Guide

IPC-73

Page 119
Image 119
Cisco Systems 78-11741-02 manual Configuring a Dhcp Server Boot File, Configuring the Number of Ping Packets, IPC-73