F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
154
Usage guidelines
Enable DHCP before performing DHCP server or relay agent configurations.
Examples
# Enable DHCP.
<Sysname> system-view
[Sysname] dhcp enable
dhcp server apply ip-pool
Use dhcp server apply ip-pool to apply an address pool on an interface.
Use undo dhcp server apply ip-pool to remove the configuration.
Syntax
dhcp server apply ip-pool pool-name
undo dhcp server apply ip-pool [ pool-name ]
Default
No extended address pool is applied on an interface, and the server assigns an IP address from a
common address pool to a client when the client's request arrives at the interface.
Views
Interface view
Default command level
2: System level
Parameters
pool-name: Specifies the name of a DHCP address pool, a case-insensitive string of 1 to 35 characters.
Usage guidelines
If you execute the dhcp server apply ip-pool command on an interface, when a client's request arrives at
the interface, the server attempts to assign the client the statically bound IP address first, and then an IP
address from this extended address pool.
Only an extended address pool can be applied on an interface. The address pool to be referenced must
already exist.
Examples
# Apply extended DHCP address pool 0 on GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] dhcp server apply ip-pool 0
Related commands
dhcp server ip-pool
dhcp select server global-pool
Use dhcp select server global-pool to enable the DHCP server on an interface. After the interface
receives a DHCP request from a client, the DHCP server allocates an IP address from the address pool.