Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 517 — #543
i
i
i
i
i
i
i
i
21
Linux in the Network
With the entry option domain-name-servers, specify up to three
values for the DNS servers used to resolve IP addresses into host
names (and vice versa). Ideally, configure a name server on your ma-
chine or somewhere else in your network before setting up DHCP.
That name server should also define a host name for each dynamic
address and vice versa. To learn how to configure your own name
server, read Section 21.7 on page 458.
The line option broadcast-address defines the broadcast ad-
dress to be used by the requesting host.
With option routers, tell the server where to send data packets
that cannot be delivered to a host on the local network (according to
the source and target host address and the subnet mask provided). In
most cases, especially in smaller networks, this router is identical to
the Internet gateway.
With option subnet-mask, specify the netmask assigned to
clients.
The last section of the file is there to define a network, including a subnet
mask. To finish, specify the address range that the DHCP daemon should
use to assign IP addresses to interested clients. In this example, clients may
be given any address between 192.168.1.10 and 192.168.1.20 as
well as 192.168.1.100 and 192.168.1.200.
After editing these few lines, you should be able to activate the DHCP dae-
mon with the command rcdhcpd start. It will be ready for use immedi-
ately. Use the command rcdhcpd check-syntax to perform a brief syn-
tax check. If you encounter any unexpected problems with your configura-
tion — the server aborts with an error or does not return “done” on start —
you should be able to find out what has gone wrong by looking for infor-
mation either in the main system log /var/log/messages or on console
10 (
Ctrl -
Alt -
F10 ).
On a default SUSE LINUX system, the DHCP daemon is started in a chroot
environment for security reasons. The configuration files must be copied to
the chroot environment so the daemon can find them. Normally, there is no
need to worry about this because the command rcdhcpd start automati-
cally copies the files.
517SUSE LINUX Enterprise Server










