
6-14
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.
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.
If a DHCP relay agent exists between the DHCP server and client, the DHCP server, 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, regardless of whether the
subaddress
keyword is
used.
When the DHCP server and client are on the same subnet:
z
With the keyword
subaddress
specified, the DHCP server will assign an IP address from the
address pool containing the secondary IP address of the server interface (connected to the client);
if the interface has multiple secondary IP addresses, the address pool containing the first
secondary IP address is selected. If the interface has no secondary IP addresses, the server is
unable to assign an IP address to the client.
z
Without the keyword
subaddress
specified, the DHCP server will assign an IP address from the
address pool containing the primary IP address of the server interface (connected to the client).
Applying an Extended Address Pool on an Interface
After you create an extended address pool and apply it on an interface, the DHCP server, upon
receiving a client's request on the interface, attempts to assign the client the statically bound IP
address first and then an IP address from the specified address pool. If no IP address is available,
address allocation fails, and the DHCP server will not assign the client any IP address from other
address pools.
Follow these steps to apply an extended address pool on an interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter interface view
interface
interface-type
interface-number
—