DHCP (Dynamic Host Configuration Protocol) : Atif Mahmood MSCIT-F09-A02
DHCP (Dynamic Host Configuration Protocol) : Atif Mahmood MSCIT-F09-A02
It is possible to work around this problem on SuSE Linux by creating a host route from
your network interface address to 255.255.255.255. The easiest way to do this in SuSE
Linux is to add a host route for this address to the network device the DHCP server is
connected to. To set this up manually, you have to issue the command:
This simple configuration file should be sufficient to get the DHCP server to assign IP
addresses in the network. Make sure that a semicolon is inserted at the end of each
line, because otherwise dhcpd will not be started.
The above sample file can be divided into three sections. The first one defines how
many seconds an IP address is leased to a requesting client by default ( default-lease-
time) before it should apply for renewal. The section also includes a statement of the
maximum period for which a machine may keep an IP address assigned by the DHCP
server without applying for renewal (max-lease-time).
In the second part, some basic network parameters are defined on a global level:
With the entry option domain-name-servers, specify up to three values for the DNS
servers used to resolve IP addresses into hostnames and vice versa. Ideally, configure
a name server on your machine or somewhere else in your network before setting up
DHCP. That name server should also define a hostname for each dynamic address and
vice versa. To learn how to configure your own name server ,
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 .
After editing these few lines, you should be able to activate the DHCP daemon with the
command rcdhcpd start. It will be ready for use immediately. Use the
command rcdhcpd check-syntax to perform a brief syntax check. If you encounter any
unexpected problems with your configuration—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 information either in the main system log/var/log/messages or on console 10
( Ctrl - Alt - F10 ).