
Operation Manual – DHCP
H3C S3610&S5510 Series Ethernet Switches
Chapter 2 DHCP Server Configuration
2-4
Follow these steps to enable DHCP:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable DHCP
dhcp enable
Required
Disabled by default.
2.4 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.
Note:
The
subaddress
keyword is valid only when the server and client are on the same
subnet. If a DHCP relay agent exists in between, regardless of
subaddress
, the DHCP
server will select an IP address from the address pool of the subnet which contains the
primary IP address of the DHCP relay agent’s interface (connected to the client).
When the DHCP server and client are on the same subnet, the server will:
z
With
subaddress
specified, assign an IP address from the address pool of the
subnet which the secondary IP address of the server’s interface connected to the
client belongs to, or assign from the first secondary IP address if several secondary
IP addresses exist. If no secondary IP address is configured for the interface, the
server is unable to assign an IP address to the client.
z
Without
subaddress
specified, assign an IP address from the address pool of the
subnet which the primary IP address of the server’s interface (connected to the
client) belongs to.