No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Modifying the Lease

Modifying the Lease

You can modify the lease for the device functioning as a DHCP server or client. When a DHCP server assigns leases, it compares the lease expected by a DHCP client with the leases in the DHCP server address pool and assigns a shorter lease to the DHCP client.

By default, the lease is one day for the device functioning as a DHCP server and is not configured for the device functioning as a DHCP client.

# On the device functioning as a DHCP server, modify the lease of the IP addresses in the global address pool pool1 or interface address pool VLANIF100 to 10 days.

  • Configuration in the global address pool:

    <HUAWEI> system-view
    [HUAWEI] ip pool pool1
    [HUAWEI-ip-pool-pool1] lease day 10
  • Configuration in the interface address pool:

    <HUAWEI> system-view
    [HUAWEI] interface vlanif 100
    [HUAWEI-Vlanif100] dhcp server lease day 10

# Modify the lease to 10 days (864000 seconds) on the device functioning as a DHCP client.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] dhcp client expected-lease 864000
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 122257

Downloads: 13172

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next