Enabling dhcp, Enabling the dhcp server on an interface, Applying an extended address pool on an interface – H3C Technologies H3C S12500 Series Switches User Manual
Page 59

45
Enabling DHCP
Enable DHCP before performing other configurations.
To enable DHCP:
Step 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:
Step 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).
Applying 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
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.
To apply an extended address pool on an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A