Follow these steps to enable DHCP:
To do...
Enter system view
Enable DHCP
Enabling the DHCP Relay Agent on an Interface
With this task completed, upon receiving a DHCP request from the enabled interface, the relay agent
will forward the request to a DHCP server for address allocation.
Follow these steps to enable the DHCP relay agent on an interface:
To do...
Enter system view
Enter interface view
Enable the DHCP relay agent
on the current interface
If the DHCP client obtains an IP address via the DHCP relay agent, the address pool of the subnet to
which the IP address of the DHCP relay agent belongs must be configured on the DHCP server.
Otherwise, the DHCP client cannot obtain a correct IP address.
Correlating a DHCP Server Group with a Relay Agent Interface
To improve reliability, you can specify several DHCP servers as a group on the DHCP relay agent and
correlate a relay agent interface with the server group. When the interface receives requesting
messages from clients, the relay agent will forward them to all the DHCP servers of the group.
Follow these steps to correlate a DHCP server group with a relay agent interface:
To do...
Enter system view
Create a DHCP server group
and add a server into the group
Enter interface view
Use the command...
system-view
dhcp enable
Use the command...
system-view
interface interface-type
interface-number
dhcp select relay
Use the command...
system-view
dhcp relay server-group
group-id ip ip-address
interface interface-type
interface-number
2-4
Remarks
—
Required
Disabled by default.
Remarks
—
—
Required
With DHCP enabled, interfaces
work in the DHCP server mode.
Remarks
—
Required
Not created by default.
—
Need help?
Do you have a question about the S5120-EI Series and is the answer not in the manual?
Questions and answers