F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
178
499BEnabling DHCP
Enable DHCP to validate other DHCP configurations.
To enable DHCP:
Ste
p
Command
Remarks
374. Enter system view. system-view N/A
375. Enable DHCP.
dhcp enable The default setting is disabled by default.
500BEnabling the DHCP server on an interface
Perform this task to enable the DHCP server on an interface. Upon receiving a DHCP request on the
interface, the DHCP server assigns an IP address and other configuration parameters from the DHCP
address pool to the DHCP client.
1217BConfiguration guidelines
Follow these guidelines when you enable the DHCP server on an interface:
• If a DHCP relay agent exists between the DHCP server and client, the DHCP server, regardless of
whether the subaddress keyword is used, selects 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.
• When 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 assignable IP address, the
server assigns 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.
1218BConfiguration procedure
To enable the DHCP server on an interface:
Ste
p
Command
Remarks
376. Enter system view.
system-view N/A
377. Enter interface view.
interface interface-type interface-number N/A
378. Enable the DHCP
server on the
interface.
dhcp select server global-pool
[ subaddress ]
Optional.
The default setting is enabled by
default.
501BApplying an extended address pool on an interface
After you create an extended address pool and apply it on an interface, a DHCP server, upon receiving
a client's request on the interface, attempts to assign the client the statically bound IP address first and