LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-08-2006, 10:21 AM   #1
cwwilson721
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 (192.168.1.xxx ,gets it address from another LAN) and eth0 (192.168.2.xxx)

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:
Code:
ddns-update-style ad-hoc;
subnet 192.168.2.0 netmask 255.255.255.0 {
   option subnet-mask 255.255.255.0;
   option broadcast-address 192.168.2.255;
   option routers 192.168.2.1;
   range 192.168.2.51 192.168.2.249; }
** Note: Was setup like this to make sure I don't mess with the DHCP server on wlan0 . Address for router on wlan0 is 192.168.1.1 . 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 10:22 AM.
 
Old 02-08-2006, 01:55 PM   #2
Dudydoo
Member
 
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, 03:22 AM   #3
cwwilson721
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.
 
  


Reply


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 08:21 PM
How do I setup a DHCP server on RedHat 9 xsabre Linux - Newbie 1 06-23-2004 05: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 09:53 AM
setup a samba server with dhcp ebele Linux - Networking 1 12-12-2002 08:55 AM
Local DHCP Server Setup ddepuemd Linux - Newbie 1 05-16-2002 06:46 PM


All times are GMT -5. The time now is 09:46 PM.

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