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. |
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.
|
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. |
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. |
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.
|
All times are GMT -5. The time now is 01:40 PM. |