32.11. Configuring the DHCP Server Module

Like most others, the DHCP Server module has several options that can be set by clicking on the Module Config link on the main page. They are divided into two groups—those under Configurable options control the module's user interface, while those under System configuration tell the module where to look for the server's configuration files and programs. Because the latter set of options are set automatically by Webmin based on your operating system or Linux distribution, you should not need to change them unless you have compiled and installed the DHCP server yourself.

Table 32.1 covers the user interface and DHCP server path options.

Table 32.1. Module Configuration Options
Sort leases byThis field controls how the list of leases is sorted. The available options are:

Order in file Leases are displayed in the order in which they appear in the leases file, which normally means they will appear in the order in which they were granted.

IP address Leases are sorted by the IP addresses assigned to the clients.

Hostname Leases are sorted by client hostnames, which are not necessarily related to their IP addresses. The hostname is determined by the client itself, and reported to the server when a lease is obtained.

Display subnets and hosts asWhen Icons is selected (as it is by default), all subnets, shared networks, hosts, and groups on the main page are shown as icons. Choosing List instead changes the display to a text table, which contains more information and uses less screen space.
Icons in rowWhen using the icon display mode, this field determines the number of icons that appear in each row of the subnet and host tables.
Display lease times inWhen Local time is selected for this field, times in the lease table are shown in the time zone of the server system. Changing it to GMT forces GMT to be used as the time zone instead, which may make more sense when administering a server in a different country.
Show IP addresses for hosts?When this field is set to Yes, the fixed IP address of each host will be shown under its icon along with the hostname on the module's main page.
Show MAC addresses for hosts?When Yes is selected, the Ethernet address of each host will be shown under its icon on the main page. It is possible to have both the IP and MAC address displayed.
DHCP server config fileThis field must be set to the full path to the DHCP server's configuration file, dhcpd.conf. You should only need to change it if you have compiled and installed the server manually instead of using the version that comes with your operating system.
DHCP server executableThis field must contain the full path to the DHCP server program, usually called dhcpd. When starting or restarting the server, Webmin runs this command with the appropriate command-line arguments for the configuration file, lease file, and interfaces.
Command to start DHCP serverIf this field is not set to Run server executable, the module will use this command instead when the Start Server button is clicked. On some Linux distributions, it is set to a bootup script that is normally used to start the server at boot time. If you have compiled and installed the DHCP server yourself, however, you should set it back to Run server executable.
Command to apply configurationWhen this field is set to Kill and restart, Webmin will kill the DHCP server process and rerun it when the Apply Changes button is clicked. If you have compiled the server yourself, then you should select this option. Only on Linux distributions that provide a bootup script that can restart the server will it be set to something different by default, such as /etc/init.d/dhcpd restart.
Path to DHCP server PID fileThis field must be set to the full path to the DHCP server's PID file, such as /var/run/dhcpd.pid. The module uses the PID file to determine if the server is running and restarts it when Apply Changes is clicked.
DHCP server lease fileThis configuration field should be set to the full path of the file in which the DHCP server stores leases. You should always make sure that the specified path is the same as the default compiled in the dhcpd server executable, otherwise the page listing leases will be empty or incomplete.
Interfaces file typeThis field determines which file the module updates when you change the network interfaces on which the server listens. Various Linux distributions have their own special files, which are read by the bootup script specified in the Command to start DHCP server field. This option should only be changed if you have compiled and installed the server yourself. If so, set it to Webmin, which tells the module to just keep the list of interfaces in its own configuration file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.137.75