Sun Ethernet Fabric Operating System DHCP Administration Guide

Exit Print View

Updated: July 2015
 
 

Configure the Lease Time

You can specify the amount of time the client can use (or lease) the IP address assigned by the server. This parameter is specific to each IP address pool. Every IP address allocated from a pool will be returned to the pool if the client does not renew the address before the lease-time expire interval.

In this example, the address pool is pool 1, and the lease time is specified as one day, two hours, and thirty minutes.

  1. Create the address pool.
    SEFOS# configure terminal
    SEFOS(config)# ip dhcp pool 1
    
  2. Specify the amount of time the client will use the IP address assigned to it by the server.
    SEFOS(dhcp-config)# lease 1 2 30
    SEFOS(dhcp-config)# end
    
  3. View the lease time for address pools.
    SEFOS# show ip dhcp server pools
    

    The output in switch 1 is:

    Pool Id                  	: 1
    -------------------------------------------
    Subnet                    	: 12.0.0.0
    Subnet Mask               	: 255.0.0.0
    Lease time                	: 95400 secs
    Utilization threshold    	 : 75%
    Start Ip                 	 : 12.0.0.1
    End Ip                   	 : 12.0.0.100