30
DHCP commands
Common DHCP commands
dhcp client-detect
Use dhcp client-detect to enable client offline detection on the DHCP server or DHCP relay agent.
Use undo dhcp client-detect to disable client offline detection on the DHCP server or DHCP relay
agent.
Syntax
dhcp client-detect
undo dhcp client-detect
Default
Client offline detection is disabled on the DHCP server or DHCP relay agent.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
The client offline detection feature on the DHCP server reclaims an assigned IP address and deletes
the binding entry when the ARP entry ages out for the IP address.
This feature on the DHCP relay agent deletes the related relay entry and sends a RELEASE
message to the DHCP server when an ARP entry ages out.
Examples
# Enable client offline detection.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] dhcp client-detect
dhcp dscp
Use dhcp dscp to set the DSCP value for DHCP packets sent by the DHCP server or the DHCP
relay agent.
Use undo dhcp dscp to restore the default.
Syntax
dhcp dscp dscp-value
undo dhcp dscp
Default
The DSCP value is 56 in DHCP packets sent by the DHCP server or the DHCP relay agent.
Views
System view