|
|
This feature module describes the Cisco IOS Dynamic Host Configuration Protocol (DHCP) Client feature and includes the following sections:
The Cisco DHCP Client is a host requesting configuration parameters, such as an IP address, from a DHCP server.
Figure 1 shows the basic steps that occur when a DHCP client requests an IP address from a DHCP server. The client, Host A, sends a DHCPDISCOVER broadcast message to locate a Cisco IOS DHCP server. A DHCP server offers configuration parameters (such as an IP address, a MAC address, a domain name, and a lease for the IP address) to the client in a DHCPOFFER unicast message.

The client returns a formal request for the offered IP address to the DHCP server in a DHCPREQUEST broadcast message. The DHCP server confirms that the IP address has been allocated to the client by returning a DHCPACK unicast message to the client.
The Cisco IOS DHCP client now enables you to obtain an IP address from a DHCP server dynamically using the DHCP protocol as specified in RFC 2131. Initially, only Ethernet interfaces are supported; work is in progress to support all interface types.
Standards
No new or modified standards are supported by this feature.
MIBs
No new or modified MIBs are supported by this feature.
For descriptions of supported MIBs, see the Cisco MIB web site on CCO at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
RFCs
See the following section for configuration tasks for the Cisco IOS Dynamic Host Control Protocol Client feature:
| Command | Purpose |
|---|---|
Router(config-if)# ip address dhcp | Specifies that the Ethernet interface acquires an IP address through DHCP. |
Figure 2 shows a simple network diagram of a DHCP client on an Ethernet LAN.

On the DHCP server, configure:
ip dhcp pool 1 network 10.1.1.0 255.255.255.0 lease 0 0 5
On the DHCP client, configure on interface E2:
interface Ethernet2 ip address dhcp
This configuration allows the DHCP client to aquire an IP address from the DHCP server through an Ethernet interface.
This section documents the new ip address dhcp command. All other commands used with this feature are documented in the Cisco IOS Release 12.1 Cisco IOS IP and IP Routing Command Reference.
To acquire an IP address on an Ethernet interface from the Dynamic Host Configuration Protocol (DHCP), use the ip address dhcp interface configuration command. To deconfigure any address that was acquired, use the no form of this command.
ip address dhcpSyntax Description
This command has no arguments or keywords.
Defaults
No default behavior or values.
Command Modes
Interface configuration
Command History
12.1(2)T This command was introduced.
Release
Modification
Usage Guidelines
The address assigned to the Ethernet interface can be used with the overload Port Address Translation (PAT) of Cisco IOS Network Address Translation (NAT).
Examples
The following example shows an IP address being acquired via DHCP on interface Ethernet2:
interface Ethernet2 ip address dhcp
Related Commands
ip dhcp pool Configures a DHCP address pool on a Cisco IOS DHCP server and places you in DHCP pool configuration mode.
Command
Description
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Thu Sep 21 19:22:18 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.