Operation Manual – DHCP
H3C S3610&S5510 Series Ethernet Switches
Chapter 3 DHCP Relay Agent Configuration
3-5
Follow these steps to correlate a DHCP server group with a relay agent interface:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a DHCP server
group and add a server
into the group
dhcp relay server-group
group-id ip
ip-address
Required
Not created by default.
Enter interface view
interface
interface-type
interface-number
—
Correlate the DHCP
server group with the
current interface
dhcp relay server-select
group-id
Required
By default, no interface
is correlated with any
DHCP server group.
Note:
z
You can specify at most twenty DHCP server groups on the relay agent and at most
eight DHCP server addresses for each DHCP server group.
z
The IP addresses of DHCP servers and those of relay agent’s interfaces cannot be
on the same subnet. Otherwise, the client cannot obtain an IP address.
z
A DHCP server group can correlate with one or multiple DHCP relay agent
interfaces, while a relay agent interface can only correlate with one DHCP server
group. Using the
dhcp relay server-select
command repeatedly overwrites the
previous configuration. However, if the specified DHCP server group does not exist,
the interface still uses the previous correlation.
z
The
group-id
in the
dhcp relay server-select
command was specified by the
dhcp
relay server-group
command.
3.3.4 Configuring the DHCP Relay Agent to Send a DHCP-Release Request
Sometimes, you need to release a client’s IP address manually on the DHCP relay
agent. With this task completed, the DHCP relay agent can actively send a
DHCP-RELEASE request that contains the client’s IP address to be released. Upon
receiving the DHCP-RELEASE request, the DHCP server then releases the IP address
for the client.