R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

61
Configuring the DHCP relay agent to release an IP
address
You can configure the relay agent to release a client's IP address. The relay agent sends a
DHCP-RELEASE message that contains the specified IP address. Upon receiving the DHCP-RELEASE
message, the DHCP server releases the IP address. Meanwhile, the client entry is removed from the
DHCP relay agent. The IP address to be released must be available in a dynamic client entry.
To configure the DHCP relay agent to send DHCP-RELEASE messages:
Ste
p
Command
1. Enter system view.
system-view
2. Configure the DHCP relay agent to release an IP address.
dhcp relay release ip client-ip
Dynamic client entries can be generated only after you enable address check, authorized ARP, or IP
source guard on the DHCP relay agent. For more information about IP source guard, see “Security
Configuration Guide.”
Configuring the DHCP relay agent to handle
Option 82
Configuration prerequisites
Before performing this configuration, complete the following tasks:
1. Enable DHCP.
2. Enable the DHCP relay agent on the specified interface.
3. Correlate a DHCP server group with relay agent interfaces.
To support Option 82, you must perform related configuration on both the DHCP server and relay agent.
For more information about DHCP server configuration, see "Configuring the DHCP server."
If the handling strategy of the DHCP relay agent is configured as replace, you must configure a padding
format for Option 82. If the handling strategy is keep or drop, you need not configure any padding
format.
The system name (sysname) if padded in sub-option 1 (node identifier) of Option 82 must not contain
spaces. Otherwise, the DHCP relay agent drops the message.
Configuration procedure
To configure the DHCP relay agent to support Option 82:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. Enable the relay agent
to handle Option 82.
dhcp relay information enable The default setting is disabled.