R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

145
To do… Use the command…
Remarks
Enter system view system-view
Enable DHCP dhcp enable
Required
Disabled by default.
Enabling the DHCP relay agent on an interface
With the DHCP relay agent enabled, an interface forwards incoming DHCP requests to a DHCP server
for address allocation.
Follow these steps to enable the DHCP relay agent 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 relay agent on
the current interface
dhcp select relay
Required
With DHCP enabled, interfaces
work in the DHCP server mode.
NOTE:
The IP address pool containing the IP address of the DHCP relay agent enabled interface must be
configured on the DHCP server. Otherwise, the DHCP clients connected to the relay agent cannot obtain
correct IP addresses.
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.
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.