Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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
Rep:
|
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 09:22 AM.
|
|
|
|
02-08-2006, 12:55 PM
|
#2
|
|
Member
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 271
Rep:
|
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.
|
|
|
|
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
Original Poster
Rep:
|
That was PERFECT. Thank you.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|