R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

153
DHCP client configuration
NOTE:
The DHCP client configuration is supported only on Layer 3 Ethernet interfaces (or subinterfaces) and
Layer 3 aggregate interfaces.
You cannot configure an interface of an aggregation group as a DHCP client.
The firewall supports DHCP client configuration in the command line interface (CLI).
Introduction to DHCP client
With the DHCP client enabled, an interface uses DHCP to obtain configuration parameters such as an IP
address from the DHCP server.
Enabling the DHCP client on an interface
Follow these steps to enable the DHCP client on an interface:
To do… Use the command…
Remarks
Enter system view system-view
Enter interface view
interface interface-type
interface-number
Enable the DHCP client on the
interface
ip address dhcp-alloc
[ client-identifier mac interface-type
interface-number ]
Required
Disabled by default.
NOTE:
On certain device models, if requesting for an IP address fails several times, a DHCP client enabled
interface uses a default IP address.
An interface can be configured to acquire an IP address in multiple ways. The latest configuration
overwrites the previous one.
Secondary IP addresses cannot be configured on an interface that is enabled with the DHCP client.
If the IP address that interface A obtains from the DHCP server is on the same network se
g
ment as the
IP address of interface B, interface A neither uses the IP address nor requests any IP address from the
DHCP server, unless the IP address of interface B is manually deleted and interface A is brought up
again by first executing the shutdown command and then the undo shutdown command or the DHCP
client is re-enabled on interface A by executing the undo ip address dhcp-alloc command and then the
ip address dhcp-alloc command.