With this function enabled on an interface, the DHCP relay agent removes a client's IP-to-MAC binding
entry when it is aged out, and sends a DHCP-RELEASE request to the DHCP server to release the IP
address of the client.
Examples
# Enable offline detection on the DHCP relay agent.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay client-detect enable
dhcp relay information circuit-id format-type
Syntax
dhcp relay information circuit-id format-type { ascii | hex }
undo dhcp relay information circuit-id format-type
View
Interface view
Default level
2: System level
Parameters
ascii: Specifies the code type for the circuit ID sub-option as ascii.
hex: Specifies the code type for the circuit ID sub-option as hex.
Description
Use dhcp relay information circuit-id format-type to configure the code type for the non-user-defined
circuit ID sub-option.
Use undo dhcp relay information circuit-id format-type to restore the default.
By default, the code type for the circuit ID sub-option depends on the specified padding format of Option
82. Each field has its own code type.
This command applies only to configuring the non-user-defined circuit ID sub-option. After you configure
the padding content for the circuit ID sub-option using the dhcp relay information circuit-id string
command, ASCII is adopted as the code type.
Related commands: display dhcp relay information.
Examples
# Configure the code type for the non-user-defined circuit ID sub-option as ascii.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay information circuit-id format-type ascii
dhcp relay information circuit-id string
Syntax
dhcp relay information circuit-id string circuit-id
undo dhcp relay information circuit-id string
26