nonnormman
Member
Everytime I try to run Dhcpd, I get a message saying that I need to declare the subnet for my static ip address(192.168.1.83). The static ip address is for the server itself. Anyone know what I'm doing wrong?
Originally posted by: nonnormman
Nevermind, I didn't declare eth0 as dhcp.
Perhaps you're implying this, but both of those should be static IP addresses. The listening interface needs to be up and running with a static IP before dhcpd can listen on it.Originally posted by: nonnormman
eth0- is the interface for which I'm serving dhcp request on.
eth1- is set to static ip address
If eth0 has a static IP assigned (as stated above) then you're not indicating the listening interface correctly when you're starting dhcpd. Dhcpd doesn't care about interfaces other than the one(s) it's listening on. So double-check your dhcpd startup configuration (probably /etc/defaults/dhcpd) to make sure you're correctly listing the interfaces. Also make sure that the interfaces are actually numbered the way you say they are.Every time I run dhcpd, It tells me to declare which subnet the interface eth1 is attached to. However, I made sure that the dhcp was set to listening to eth0.
Originally posted by: Nothinman
When you start dhcpd3 (assuming you're using v3 of the ISC DHCP daemon and the binary is called that) you should specify the interface to listen on, i.e. 'dhcpd3 -q eth0'.
How precisely did you do that? What does it say in the file you edited or created? Post the details here exactly. From everything you've described, it sounds like you're not specifying the interface correctly despite your belief that you have.Originally posted by: nonnormman
I'm using Dhcpd, but I did specify which interface I was using in the /etc/default/dhcp directory.
You don't need to do anything with the leases file manually. The daemon will take care of that on its own.When I type touch /var/state/dhcp/dhcpd.leases to create a lease file, It says it doesn't exist. Should I use xemacs to create the file instead?
Originally posted by: cleverhandle
How precisely did you do that? What does it say in the file you edited or created? Post the details here exactly. From everything you've described, it sounds like you're not specifying the interface correctly despite your belief that you have.Originally posted by: nonnormman
I'm using Dhcpd, but I did specify which interface I was using in the /etc/default/dhcp directory.
You don't need to do anything with the leases file manually. The daemon will take care of that on its own.When I type touch /var/state/dhcp/dhcpd.leases to create a lease file, It says it doesn't exist. Should I use xemacs to create the file instead?
Also, you still haven't said whether the config file you posted earlier is what you're currently using. Knowing what distribution this is might also be helpful.
You said before that you wanted to serve requests on eth0. Which is it?Originally posted by: nonnormman
INTERFACE="eth1" is what the file looks like and I'm using regular dhcpd with the dhcp-server.
Thank you.Yes, I'm using the config file posted earlier. I'm using the debian distribution of linux.
Originally posted by: cleverhandle
You said before that you wanted to serve requests on eth0. Which is it?Originally posted by: nonnormman
INTERFACE="eth1" is what the file looks like and I'm using regular dhcpd with the dhcp-server.
I thought the interface with static address was only used to access the internet. Are you saying that I use that interface for dhcpd to listen to as well?
If I am understanding this correctly, this DHCP machine you're building is not doing the routing for the subnet. What machine is routing, and why is it not doing DHCP duties? Please describe your network, including which machines have which address ranges assigned and what their gateways are.Originally posted by: nonnormman
...my static ip address(192.168.1.83)...
...option routers 192.168.1.1;