When DHCP starts, it reads the file /etc/dhcpd.conf. It uses the commands here toconfigure your network. The standard DHCP RPM package doesn't automatically installa /etc/dhcpd.conf file, but you can find a sample copy of dhcpd.conf in the followingdirectory which you can always use as a guide.
/usr/share/doc/dhcp-<version-number>/dhcpd.conf.sample
You have to copy the sample dhcpd.conf file to the /etc directory and then you'll have toedit it. Here is the command to do the copying for the version 3.0p11 RPM file:
[root@bigboy tmp]# cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample/etc/dhcpd.conf
Debian Note
: With Debian / Ubuntu the configuration file name is
/etc/dhcp*/dhcpd.conf
and has the same syntax as that used by Redhat / Fedora.Here is a quick explanation of the dhcpd.conf file: Most importantly, there must be asubnet section for each interface on your Linux box.
ddns-update-style interimignore client-updates subnet 192.168.1.0 netmask 255.255.255.0 { # The range of IP addresses the server# will issue to DHCP enabled PC clients# booting up on the network range 192.168.1.201 192.168.1.220; # Set the amount of time in seconds that# a client may keep the IP addressdefault-lease-time 86400;max-lease-time 86400; # Set the default gateway to be used by# the PC clients option routers 192.168.1.1;# Don't forward DHCP requests from this# NIC interface to any other NIC# interfaces option ip-forwarding off;
Leave a Comment
wwW.04free.com