Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-08-2006, 09:21 AM   #1
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Question Trying to setup a DHCP server

Here's the scoop:

I have a Slackware 10.2 box, full install, kernel 2.6.15

Two lan ports: wlan0 ( ,gets it address from another LAN) and eth0 (

NAT is functional (Slackware box is acting as gateway to the wireless portion, which is where internet is). Up til now, eth0 network has been using static IP's. I want to have a functional DHCP server on the Slack box.

I tried first to edit dhcpd.conf with the following:
ddns-update-style ad-hoc;
subnet netmask {
   option subnet-mask;
   option broadcast-address;
   option routers;
   range; }
** Note: Was setup like this to make sure I don't mess with the DHCP server on wlan0 . Address for router on wlan0 is . The ad-hoc line I added because otherwise dhcpd would not start, was in the error it printed, so I added it. If I need something else, tell me ***

The other machines on eth0 DO get an IP address, but when trying to get on internet , says it can't find the website. So maybe it's a name server setup issue? If so, how do I do this? I already have the nameserver (dns) address's in resolv.conf on the slackware box, and setting up a DNS server just for this seems like overkill.

Any ideas?

Last edited by cwwilson721; 02-08-2006 at 09:22 AM.
Old 02-08-2006, 12:55 PM   #2
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
you need 'option domain-name-servers <ip-of-dns-server>;' in dhcpd.conf to configure your clients resolver.

man dhcpd.conf has all the details.
Old 02-09-2006, 02:22 AM   #3
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Original Poster
Rep: Reputation: 66
That was PERFECT. Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp server setup help requested gonus Linux - Networking 5 07-09-2004 07:21 PM
How do I setup a DHCP server on RedHat 9 xsabre Linux - Newbie 1 06-23-2004 04:48 PM
setup a dhcp server with suse 8.2 or redhat 6.2/9.0 The_SUSE_NEWBE Linux - Networking 1 06-10-2003 08:53 AM
setup a samba server with dhcp ebele Linux - Networking 1 12-12-2002 07:55 AM
Local DHCP Server Setup ddepuemd Linux - Newbie 1 05-16-2002 05:46 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration