21
NOTE:
You need to enable DHCP before performing DHCP server and relay agent configurations.
Examples
# Enable DHCP.
<Sysname> system-view
[Sysname] dhcp enable
dhcp server apply ip-pool
Syntax
dhcp server apply ip-pool
pool-name
undo dhcp server apply ip-pool
[
pool-name
]
View
Interface view
Default level
2: System level
Parameters
pool-name
: Specifies the DHCP address pool name, a case-sensitive string in the range 1 to 35
characters.
Description
Use the
dhcp server apply ip-pool
command to apply an extended address pool on an interface.
Use the
undo dhcp server apply ip-pool
command to remove the configuration.
By 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.
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.
Related commands:
dhcp server ip-pool
.
Examples
# Apply extended DHCP address pool 0 on VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp server apply ip-pool 0
dhcp select server global-pool
Syntax
dhcp select server global-pool
[
subaddress
]