The policy for saving the lease database to disk. The options are:
i.
Never - Never save the database.
ii.
ReconfShut - Save the database on a reconfigure or a shutdown.
iii.
ReconfShutTimer - Save the database on a reconfigure or a shutdown and also
periodically. The amount of time between periodic saves is specified by the next
parameter, Lease Store Interval.
•
Lease Store Interval
The number of seconds between auto saving the lease database to disk. The default value is
86400 seconds.
Example 5.2. Setting up an IPv4 DHCP server
This example shows how to set up a DHCP server called DHCPServer1 which assigns and manages
IP addresses from an IPv4 address pool called DHCPRange1.
This example assumes that an IP range for the DHCP Server has already been created.
Command-Line Interface
gw-world:/> add DHCPServer DHCPServer1
Web Interface
1.
Go to: Network > Network Services > DHCP Servers > Add > DHCPServer
2.
Now enter:
•
Name: DHCPServer1
•
Interface Filter: lan
•
IP Address Pool: DHCPRange1
•
Netmask: 255.255.255.0
3.
Click OK
Displaying IP to MAC Address Mapping
To display the mappings of IP addresses to MAC addresses that result from allocated DHCP
leases, the dhcpserver command can be used. Below, is some typical output:
gw-world:/> dhcpserver -show -mappings
DHCP server mappings:
Client IP
Client MAC
Interface=lan
IPAddressPool=DHCPRange1
Netmask=255.255.255.0
Mode
399
Chapter 5: DHCP Services