DHCP relay agent tasks at a glance
Tasks at a glance
(Required.)
(Required.)
(Required.)
(Optional.)
Configuring the DHCP relay agent security features
(Optional.)
Configuring the DHCP relay agent to release an IP address
(Optional.)
Configuring Option 82
(Optional.)
Setting the DSCP value for DHCP packets sent by the DHCP relay agent
(Optional.)
Configuring DHCP packet rate limit on a DHCP relay interface
(Optional.)
Specifying the DHCP relay agent address for the giaddr field
(Optional.)
Specifying the source IP address for DHCP requests
(Optional.)
Configuring the DHCP relay agent to always unicast relayed DHCP responses
(Optional.)
Configuring forwarding DHCP replies based on Option 82
Enabling DHCP
You must enable DHCP to validate other DHCP relay agent settings.
To enable DHCP:
Step
1.
Enter system view.
2.
Enable DHCP.
Enabling the DHCP relay agent on an interface
With the DHCP relay agent enabled, an interface forwards incoming DHCP requests to a DHCP
server.
An IP address pool that contains the IP address of the DHCP relay interface must be configured on
the DHCP server. Otherwise, the DHCP clients connected to the relay agent cannot obtain correct IP
addresses.
To enable the DHCP relay agent on an interface:
Step
1.
Enter system view.
2.
Enter interface view.
3.
Enable the DHCP relay
agent.
Enabling DHCP
Enabling the DHCP relay agent on an interface
Specifying DHCP servers
Command
system-view
dhcp enable
Command
system-view
interface interface-type
interface-number
dhcp select relay
134
Remarks
N/A
By default, DHCP is disabled.
Remarks
N/A
N/A
By default, when DHCP is
enabled, an interface operates in
the DHCP server mode.