R3721-F3210-F3171-HP High-End Firewalls Network Management Configuration Guide-6PW101

Table Of Contents
174
CAUTION:
Be cautious When you configure self-defined DHCP options because such configuration may affect the
operation of DHCP.
Enabling DHCP
Enable DHCP before performing other configurations.
To enable DHCP:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable DHCP.
dhcp enable Disabled by default.
Enabling the DHCP server on an interface
With the DHCP server enabled on an interface, upon receiving a client’s request, the DHCP server will
assign an IP address from its address pool to the DHCP client.
To enable the DHCP server on an interface:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. 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 will preferably assign 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.