LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2005, 11:33 AM   #1
Trano
Member
 
Registered: Jul 2004
Posts: 30

Rep: Reputation: 15
DHCPD Not Giving Out Addresses


I am running Slackware 10 with 3 nics. I get dhcp from my isp on eth0. I want to run DHCPD on eth1 and eth2 (wired and wireless). DHCPD runs without errors, and has given addresses in the past, but it will now not give out addresses on either interface.

My dhcpd.conf file is:

# DNS update style
ddns-update-style interim;
#
# Wired Network
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.254;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
}

# Wireless Network
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.100 192.168.2.254;
option routers 192.168.2.1;
option domain-name-servers 192.168.2.1;
}

And the server is started with the command:
/usr/sbin/dhcpd eth1 eth2

Is there something here I am doing wrong?

Thank you for any help.
 
Old 04-15-2005, 01:31 PM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Have you tried to start it w/ just using "/usr/sbin/dhcpd" with out adding eth1 and eth2 to it? If I try to add an interface as an arguement to mine it will not work. With your config file setup how it is, adding eth1 and eth2 is redundant.
 
Old 04-15-2005, 02:56 PM   #3
Trano
Member
 
Registered: Jul 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Well that was easy. Thank you. Is there a reason it would not work with the arguments? When I run it without the arguments it gives me an error about eth0, but says it is listening and sending on the other two.

Thank you for your help.
 
Old 04-15-2005, 03:08 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Does it say something like "No subnet declaration for eth0"? That's not so much an error as it is just a warning.

I'd say it just isn't written to accept interfaces as an arguement like that since you use the config file to tell it which subnets you want it to work on.
 
Old 04-16-2005, 12:12 AM   #5
Trano
Member
 
Registered: Jul 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Yeah thas all it is. I figured it was fine, just telling me what its not doing, which is good I guess. So if it is written that way, why would it have the option to put interfaces? Maybe if you have 2 interfaces on the same subnet and only want it to go on one? I can't think of any other reason for working that way.
 
  


Reply



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
arp giving me incomplete mac addresses iamnotherbert Linux - Networking 2 01-02-2014 06:36 AM
dhcpd assigns ip addresses backwards qartis Linux - Networking 5 08-08-2005 06:59 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration