beautypg.com

Enabling dhcp, Enabling the dhcp relay agent on an interface – H3C Technologies H3C SecPath F1000-E User Manual

Page 220

background image

195

Enabling DHCP

Enable DHCP before performing other configurations related to the DHCP relay agent.
To enable DHCP:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable DHCP.

dhcp enable

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.
To enable the DHCP relay agent on an interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type

interface-number

N/A

3.

Enable the DHCP relay agent
on the current interface.

dhcp select relay

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.
To correlate a DHCP server group with a relay agent interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a DHCP server group

and add a server into the
group.

dhcp relay server-group group-id ip
ip-address

Not created by default.

3.

Enter interface view.

interface interface-type
interface-number

N/A

4.

Correlate the DHCP server
group with the current

interface.

dhcp relay server-select group-id

By default, no interface is
correlated with any DHCP

server group.