The dhcp client renew command renews the lease of the IP address obtained by a DHCP client.
This command applies to the following scenarios:
Manually renewing the lease
If a DHCP server assigns the original IP address to the client, only the lease is renewed. If another DHCP server assigns an IP address to the client, the client obtains a new IP address and related network parameters.
Updating the IP address
When the DHCP client is migrated from a network segment to another network segment and the original IP address lease does not expire, the client needs to update the IP address.
After the dhcp client renew command is run, the DHCP client sends a lease renewal request to the DHCP server.
The dhcp client renew command can be normally run only after the DHCP client function is enabled on the interface and an IP address is obtained.
# Renew the IP address lease on VLANIF100.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp client renew
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp client renew