Common Operation (DHCP):Modifying the Lease

Created Mar 21, 2016 11:36:06Latest reply Mar 21, 2016 13:54:27 1110 2 0 0

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
  • x
  • convention:

user_2790689  Expert   Created Mar 21, 2016 11:57:16 Helpful(0) Helpful(0)

Thank you for sharing.
  • x
  • convention:

user_1763575     Created Mar 21, 2016 13:54:27 Helpful(0) Helpful(0)

Thank you for sharing.
  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top