Dhcp server bad subnet combination
I've been working on setting up dhcp server on my laptop, but, after saving settings to dhcpd & restarting services I get the error message
PHP Code:
Anyway my router has a subnet of 10.0.0.1 with netmask set at 255.255.255.0 which I entered in my dhcpd.conf. That's when I got the bad subnet message. Should I be trying to create another or am I supposed to use the information from the router? |
For a mask of 255.255.255.0 you need the last digit of the subnet part to be 0. If the mask were 255.255.0.0 then last two digits need to be zero, and so on. So just change your declaration to
Code:
subnet 10.0.0.0 netmask 255.255.255.0 { |
I have tried that setup but it says the addresses aren't available.
|
Actually this is the error message
Quote:
|
Here is syslog output
Quote:
|
You need to add the following to your dhcp.conf
DHCPDARGS=eth0; There might be other parameters that might be missing so seeing your dhcp.conf file would help. Are you going to disable your router's DHCP server? |
Code:
cat /etc/default/isc-dhcp-server Code:
sudo cat /etc/dhcp/dhcpd.conf |
I don't see anything obviously wrong with either file. Since INTERFACES="eth0" is defined I'm not sure why you are seeing the "Not configured to listen on any interfaces! " error.
Have you assigned a static IP address to the laptop's eth0? |
Quote:
|
Now I can start dhcpd, & the machine is seen in my dmesg, but still no network
Btw I called myself doing static address not sure if it's right. Code:
sudo tail /var/log/syslog |
I guess the
Quote:
@michaelk I have not disabled dhcp in the main router because there are multiple machines on the network which aren't mine & will not be connected to dhp server. The dhcp server is only intended to be used for 1 of my machines that isn't near the router& don't have any intentions of running wires to it. Anyways the dhcp-server is connected to the router via wireless & to the machine via ethernet. All of the .conf files related to this venture, were backed-up as .conf.old so I can return everything back to the original state of installing isc-dhcp-server. What info can I provide to get this ball rolling? |
It looks like perfectionplus4 is being assigned an IP address. I assumed you assigned eth0 a static IP address.
Your net subnet on eth0 should be different then the router's. You also need to enable IP forwarding to be able to pass traffic between eth0 and wlan0. |
Ok I will try that out
|
Quote:
Code:
# This file describes the network interfaces available on your system Quote:
Quote:
|
This is where I got info for setting subnet for dhcpd
http://linuxinside.blogspot.com/2012...debian_17.html |
All times are GMT -5. The time now is 12:29 PM. |