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

128
Enabling DHCP
Enable DHCP before performing other configurations.
Follow these steps to enable DHCP:
To do… Use the command…
Remarks
Enter system view system-view
Enable DHCP dhcp enable
Required
Disabled by default.
Enabling the DHCP server on an interface
With the DHCP server enabled on an interface, upon receiving a clients request, the DHCP server
assigns an IP address from its address pool to the DHCP client.
Follow these steps to enable the DHCP server 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 server on an
interface
dhcp select server global-pool
[ subaddress ]
Optional
Enabled by default.
NOTE:
If a DHCP relay agent exists between the DHCP server and client, the DHCP server, regardless of whether
the subaddress keyword is used, will select an IP address from the address pool containing the primary IP
address of the DHCP relay agent’s interface (connected to the client) for a requesting client.
NOTE:
W
hen the DHCP server and client are on the same subnet:
With the keyword subaddress specified, the DHCP server preferably assigns an IP address from an
address pool that resides on the same subnet as the primary IP address of the server interface
(connecting to the client). If the address pool contains no assi
g
nable IP address, the server assi
g
ns an IP
address from an address pool that resides on the same subnet as the secondary IP addresses of the
server interface. If the interface has multiple secondary IP addresses, each address pool is tried in turn
for address allocation.
Without the keyword subaddress specified, the DHCP server can only assign an IP address from the
address pool that resides on the same subnet as the primary IP address of the server interface.
Configuring the DHCP server security functions
Configuration prerequisites
Before performing this configuration, complete the following configurations on the DHCP server:
Enable DHCP
Configure the DHCP address pool