Guest Carlos Tarik Posted August 27, 2007 Report Share Posted August 27, 2007 Hello everybody, I have a Server with Mandriva 2007 work as a Firewall, I would like that it works as a DHCP server too. I need only a simple DHCP server, to distribute IP and Default gateway. My server is already sharing the Internet BroadBand. My network is 192.168.0.0/24. If someone could help me, i apreciate that. Thanks. Carlos Tarik Linux Beginner..rsrs Link to comment Share on other sites More sharing options...
arctic Posted August 27, 2007 Report Share Posted August 27, 2007 Found this in a german article (based on Mdv 2005) and have translated it for you. I guess it will be the same procedure in 2007: Run from a root terminal: cp /etc/dhcpd.conf.sample \ /etc/dhcpd.conf This will activate a sample configuration for a dhcp server. Now edit the dhcpd.conf file with e.g. nano. (The file you get should look similar to this): option domain-name "home-network"; ddns-update-style none; default-lease-time 14400; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.20; default-lease-time 14400; max-lease-time 172800; } Adjust the domain name, if necessary, as well as the subnet entry. Most times they can stay as are. Adjust the range setting to the IP range that your server uses in order to communicate with the other computers on your LAN. Now save and exit. Now you will need to have a database containing all used IP addresses. For this, run as root: touch /var/lib/dhcp/dhcpd.leases Now open the control center and activate in the services-section the "dhcp" service and check the "start service at bootup" box. Hope it works. Link to comment Share on other sites More sharing options...
SoulSe Posted August 28, 2007 Report Share Posted August 28, 2007 Easiest way to configure a DHCP server is to use Webmin. Just a few clicks and you're off. If you need a dedicated routing solution, also check out Smoothwall - it's a dedicated distro for this kind of thing. Otherwise go to your nearest computer / electronics shop and pick up a cheap router ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now