82
Syntax
ip address dhcp-alloc
undo ip address dhcp-alloc
Default
An interface does not use DHCP for IP address acquisition.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
When you execute the undo ip address dhcp-alloc command, the interface sends a
DHCP-RELEASE message to release the IP address obtained through DHCP. If the interface is
down, the message cannot be sent out.
For a subinterface that obtained an IP address through DHCP, using the shutdown command on its
primary interface does not make the subinterface send a DHCP-RELEASE message for releasing
the subinterface's IP address.
Examples
# Configure VLAN-interface 10 to use DHCP for IP address acquisition.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ip address dhcp-alloc
DHCP snooping commands
DHCP snooping works between the DHCP client and the DHCP server or between the DHCP client
and the relay agent. DHCP snooping does not work between the DHCP server and the DHCP relay
agent.
dhcp snooping binding database filename
Use dhcp snooping binding database filename to configure the DHCP snooping device to back
up DHCP snooping entries to a file.
Use undo dhcp snooping binding database filename to disable the auto backup and remove the
backup file.
Syntax
dhcp snooping binding database filename { filename | url url [ username username [ password
{ cipher | simple } key ] ] }
undo dhcp snooping binding database filename
Default
The DHCP snooping device does not back up DHCP snooping entries.
Views
System view
Predefined user roles
network-admin