
152
Configuring the DHCP client
About DHCP client
With DHCP client enabled, an interface uses DHCP to obtain configuration parameters from the
DHCP server, for example, an IP address.
Restrictions and guidelines: DHCP client
configuration
The DHCP client configuration is supported only on the Layer 3 Ethernet interfaces (or
subinterfaces), VLAN interfaces, and Layer 3 aggregate interfaces on CSPEX (except CSPEX-1204)
cards.
Enabling the DHCP client on an interface
Restrictions and guidelines
Follow these restrictions and guidelines when you enable the DHCP client on an interface:
•
An interface can be configured to acquire an IP address in multiple ways. The new configuration
overwrites the old.
•
Secondary IP addresses cannot be configured on an interface that is enabled with the DHCP
client.
•
If the interface obtains an IP address on the same segment as another interface on the device,
the interface does not use the assigned address. Instead, it requests a new IP address from the
DHCP server.
Procedure
To enable the DHCP client on an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure an interface to use
DHCP for IP address
acquisition.
ip address dhcp-alloc
By default, an interface does not
use DHCP for IP address
acquisition.
Configuring a DHCP client ID for an interface
About DHCP client ID
A DHCP client ID is added to the DHCP option 61 to uniquely identify a DHCP client. A DHCP server
can specify IP addresses for clients based on their DHCP client IDs.
DHCP client ID includes an ID type and a type value. Each ID type has a fixed type value. You can
specify a DHCP client ID by using one of the following methods: