Configure a DHCP Server Using YaST
The DHCP server can be configured with YaST by selecting
YaST > Network Services > DHCP Server
When this YaST module is started for the first time, a configuration wizard is started, enabling a simple, basic configuration in three steps.
Do the following:
1. Select the network interface on which the DHCP server is to listen:
2. Set global settings such as the domain name and the IP addresses of name servers:
In SUSE LINUX Enterprise Server 9, the data of the DHCP server can be managed in an LDAP directory.
To enable this function, LDAP Support must be activated.
Following the activation of the LDAP support, the data for the DHCP server is no longer stored in the file /etc/dhcpd.conf but in the LDAP directory.
Subsequently, the configuration can only be modified by using YaST or the respective LDAP tool. The file /etc/dhcpd.conf will contain only the following entries for the access to the LDAP directory:
ldap-base-dn "ou=DHCP,dc=digitalairlines,dc=com"; ldap-method static; ldap-server "localhost";
The YaST module mail-server for the configuration of a mail server can only be used if the DHCP server data are stored in the LDAP directory.
3. Set the address space from which the addresses are assigned dynamically and the lease time; then select Next:
This wizard for configuring the DHCP server is only started when the DHCP server module is used for the first time.
The DHCP server module starts after you select Next..
After this, this module will start whenever
YaST2 > Network Services > DHCP Server is launched.
In this module, you can modify all settings made with the wizard:
4. You can enter the hosts that are to be assigned static IP addresses on the basis of their MAC addresses under Host Management.
5. To perform further settings such as the dynamic update of the name server by the DHCP server, select Expert Settings.
If it is selected and the settings are modified, the expert module will be started instead of the standard module the next time the YaST module is launched.
One important aspect of the expert module is
Run DHCP Server in Chroot Jail
By default, the DHCP server in SUSE LINUX Enterprise Server runs in a chroot environment. The daemon is started by the user nobody.
Upon start up, all relevant configuration files are copied to the directory /var/lib/dhcp/, which serves as the root directory of the daemon.
Disable this option if you do not want to use this security option.
In this way, the variable DHCPD_RUN_CHROOTED in the file /etc/sysconfig/dhcpd is set to no.
The configured declarations are displayed in the main field.
6. Select Add to add further declarations, including addresses to be assigned statically to specific hosts.
7. Select Edit and Dynamic DNS to configure the dynamic modification of zone files of the name server for subnet declarations.
8. Select Advanced to see the server protocols (entries of dhcpd in /var/log/messages) and to manage the authentication keys for dynamic DNS updates.
Continue reading here: Exercise 21 Configure the DHCP Server
Was this article helpful?