72
Configuring the DHCP relay agent to release an
IP address
About configuring the DHCP relay agent to release an IP address
Configure the relay agent to release the IP address for a relay entry. The relay agent sends a
DHCP-RELEASE message to the server and meanwhile deletes the relay entry. Upon receiving the
DHCP-RELEASE message, the DHCP server releases the IP address.
This command can release only the IP addresses in the recorded relay entries.
Procedure
1. Enter system view.
system-view
2. Configure the DHCP relay agent to release an IP address.
dhcp relay release ip ip-address
Configuring DHCP relay agent support for Option
82
To support Option 82, you must perform related configuration on both the DHCP server and relay
agent. For DHCP server Option 82 configuration, see "Enabling handling of Option 82."
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Enable the relay agent to handle Option 82.
dhcp relay information enable
By default, handling of Option 82 is disabled.
4. (Optional.) Configure the strategy for handling DHCP requests that contain Option 82.
dhcp relay information strategy { drop | keep | replace }
By default, the handling strategy is replace.
If the handling strategy is
replace, configure a padding mode and a padding format for Option
82. If the handling strategy is
keep or drop, you do not need to configure a padding mode or
padding format for Option 82.
5. (Optional.) Configure the padding mode and padding format for the Circuit ID sub-option.
dhcp relay information circuit-id { bas | string circuit-id | { normal |
verbose [ node-identifier { mac | sysname | user-defined
node-identifier } ] [ interface ] } [ format { ascii | hex } ] }
By default, the padding mode for Circuit ID sub-option is normal, and the padding format is
hex.
The device name (
sysname) must not include spaces if it is configured as the padding content
for sub-option 1. Otherwise, the DHCP relay agent will fail to add or replace Option 82.
6. (Optional.) Configure the padding mode and padding format for the Remote ID sub-option.