Step
2.
Enter interface view.
3.
Enable the DHCP relay agent
on the current interface.
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 request messages
from clients, the relay agent will forward them to all the DHCP servers of the group.
Configuration guidelines
Follow these guidelines when you correlate a DHCP server group with a relay agent interface:
You can specify up to twenty DHCP server groups on the relay agent.
•
By executing the dhcp relay server-group command repeatedly, you can specify up to eight DHCP
•
server addresses for each DHCP server group.
•
The IP addresses of DHCP servers and those of relay agent's interfaces that connect DHCP clients
cannot be on the same subnet. Otherwise, the client cannot obtain an IP address.
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.
The group-id argument in the dhcp relay server-select command is configured by using the dhcp
•
relay server-group command.
Configuration procedure
To correlate a DHCP server group with a relay agent interface:
Step
1.
Enter system view.
2.
Create a DHCP server group
and add a server into the
group.
3.
Enter interface view.
4.
Correlate the DHCP server
group with the current
interface.
Command
interface interface-type
interface-number
dhcp select relay
Command
system-view
dhcp relay server-group group-id ip
ip-address
interface interface-type
interface-number
dhcp relay server-select group-id
37
Remarks
N/A
Disabled by default
Remarks
N/A
Not created by default.
N/A
By default, no interface is
correlated with any DHCP
server group.