mac

Commands for DHCP
299
Chapter 26 Commands for DHCP
26.1 Commands for DHCP Server Configuration
26.1.1 bootfile
Command: bootfile <filename>
no bootfile
Function: Sets the file name for DHCP client to import on boot up; the no bootfile
“command deletes this setting.
Parameters: <filename> is the name of the file to be imported, up to 255 characters are
allowed.
Command Mode: DHCP Address Pool Mode
Usage Guide: Specify the name of the file to be imported for the client. This is usually
used for diskless workstations that need to download a configuration file from the server
on boot up. This command is together with the “next sever”.
Example: The path and filename for the file to be imported is “c:\temp\nos.img”
Switch(dhcp-1-config)#bootfile c:\temp\nos.img
Related Command: next-server
26.1.2 clear ip dhcp binding
Command: clear ip dhcp binding {<address> | all}
Function: Deletes the specified IP address-hardware address binding record or all IP
address-hardware address binding records.
Parameters: <address> is the IP address that has a binding record in decimal format.
all refers to all IP addresses that have a binding record.
Command mode: Admin Mode.
Usage Guide: show ip dhcp binding command can be used to view binding
information for IP addresses and corresponding DHCP client hardware addresses. If the
DHCP server is informed that a DHCP client is not using the assigned IP address for
some reason before the lease period expires, the DHCP server would not remove the
binding information automatically. The system administrator can use this command to
delete that IP address-client hardware address binding manually, if “all” is specified, then
all auto binding records will be deleted, thus all addresses in the DHCP address pool will