13-23
Dynamic Host Configuration Protocol (DHCP)
Configuring a Router Interface as a DHCP Client
Configuring a Dynamic Address
You enable the DHCP client on an individual interface. Interfaces that can act
as DHCP clients are:
■ Frame Relay subinterfaces
■ ATM subinterfaces
■ Ethernet interfaces
■ PPP interfaces (only when bridging traffic)
Move to the appropriate interface configuration mode context and enter one
of these commands:
Syntax: ip address dhcp {client-id [ethernet 0/<port> | HH:HH:HH:HH:HH:HH:HH] |
hostname <hostname>} [track <name>] [<administrative distance>]
Syntax: ip address dhcp [hostname <hostname> | no-default-route | no-domain-
name | no-nameservers] [track <name>] [<administrative distance>]
You can enter this command without any options to initiate the client with the
default client ID and host name:
ProCurve(config-fr 1.101)# ip address dhcp
You will learn more about adding the other options to the command in the
following sections:
■ “Setting an Interface’s Client ID” on page 13-24
■ “Setting the Interface’s Hostname” on page 13-25
■ “Preventing the Interface from Taking Other Configurations” on page 13-25
■ “Attaching a Network Monitoring Track to the DHCP Default Route” on
page 13-26
■ “Setting the Interface’s Administrative Distance” on page 13-27
Note As soon as you enable the DHCP client with this command, the interface sends
a Discover message to the server and attempts to take a dynamic address. If
you want to configure any of the options discussed below, you must add these
options to the command before entering it. Otherwise, the interface will have
already received its configurations; you will have to release the address,
disable the DHCP client (by entering no ip address dhcp), and re-enter the
command with the optional settings.