23.1 Configuring a DHCP Server with YaST
IMPORTANT: LDAP Support
In this version of openSUSE, the YaST DHCP module can be set up
to store the server configuration locally (on the host that runs the
DHCP server) or to have its configuration data managed by an LDAP
server. If you want to use LDAP, setup your LDAP environment before
configuring the DHCP server.
The YaST DHCP module allows you to set up your own DHCP server for the
local network. The module can run in simple mode or expert mode.
23.1.1 Initial Configuration (Wizard)
When the module is started for the first time, a wizard starts,
prompting you to make a few basic decision concerning server
administration. Completing this initial setup produces a very basic
server configuration that should function in essential aspects. The
expert mode can be used to deal with more advanced configuration tasks.
- Card Selection
In the first step, YaST looks for the network interfaces available
on your system then displays them in a list. From the list, select
the interface on which the DHCP server should listen and click
. After this, select to open the firewall for this
interface. See Figure 23-1.
Figure 23-1 DHCP Server: Card Selection
- Global Settings
Use the check box to determine whether your DHCP settings should be
automatically stored by an LDAP server. In the entry fields, provide
the network specifics for all clients the DHCP server should manage.
These specifics are the domain name, address of a time server,
addresses of the primary and secondary name server, addresses of a
print and a WINS server (for a mixed network with both Windows and
Linux clients), gateway address, and lease time. See
Figure 23-2 DHCP Server: Global Settings
- Dynamic DHCP
In this step, configure how dynamic IP addresses should be assigned
to clients. To do so, specify an IP range from which the server can
assign addresses to DHCP clients. All these addresses must be covered
by the same netmask. Also specify the lease time during which a
client may keep its IP address without needing to request an
extension of the lease. Optionally, specify the maximum lease
time—the period during which the server reserves an IP address
for a particular client. See Figure 23-3.
Figure 23-3 DHCP Server: Dynamic DHCP
- Finishing the Configuration and Setting the Start Mode
After the third part of the configuration wizard, a last dialog is
shown in which you can define how the DHCP server should be started.
Here, specify whether to start the DHCP server automatically when the
system is booted or manually when needed (for example, for test
purposes). Click to complete the
configuration of the server. See
Figure 23-4 DHCP Server: Start-Up