CLI Reference Guide-R02

Table Of Contents
Chapter 27
| DHCP Commands
DHCP Client
– 777 –
ip dhcp restart client This command submits a DHCP client request.
Default Setting
None
Command Mode
Privileged Exec
Command Usage
This command issues a DHCP client request for any IP interface that has been
set to DHCP mode through the ip address command.
DHCP requires the server to reassign the client’s last address if available.
If the DHCP server has been moved to a different domain, the network portion
of the address provided to the client will be based on this new domain.
Example
In the following example, the device is reassigned the same address.
Console(config)#interface vlan 1
Console(config-if)#ip address dhcp
Console(config-if)#exit
Console#ip dhcp restart client
Console#show ip interface
VLAN 1 is Administrative Up - Link Up
Address is 00-E0-00-00-00-01
Index: 1001, MTU: 1500
Address Mode is DHCP
IP Address: 192.168.0.2 Mask: 255.255.255.0
Proxy ARP is disabled
DHCP Client Vendor Class ID (text): ECS5520-18X
DHCP Relay Server:
Console#
Related Commands
ip address (802)
show ip dhcp
dynamic-provision
This command shows the status of dynamic provision via DHCP.
Command Mode
Privileged Exec
Example
Console#show ip dhcp dynamic-provision
Dynamic Provision via DHCP Status: Disabled
Console#