The dhcp client expected-lease command enables expected lease on a DHCP client.
The undo dhcp client expected-lease command disables expected lease on a DHCP client.
By default, expected lease is disabled on the DHCP client.
Parameter |
Description |
Value |
---|---|---|
time |
Specifies an expected lease for a DHCP client. |
The value is an integer that ranges from 60 to 864000, in seconds. |
The dhcp client expected-lease command applies to DHCP clients. An expected lease can be contained in Option 51 of a DHCP Request message sent to the server. The server compares the expected lease with the lease in the address pool and assigns a shorter lease to the client.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] dhcp client expected-lease 7200
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] dhcp client expected-lease 7200