I am running Raspbian and trying to run cmd service isc-dhcp-server start. This returns the msg
[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
my /var/sys/log file contains
dhcpd: Wrote 0 leases to leases file.
dhcpd: Multiple interfaces match the same subnet: wlan0 eth0
dhcpd: Multiple interfaces match the same shared network: wlan0 eth0
dhcpd:
dhcpd: No subnet declaration for wlan1 (no IPv4 addresses).
dhcpd: ** Ignoring requests on wlan1. If this is not what
dhcpd: you want, please write a subnet declaration
dhcpd: in your dhcpd.conf file for the network segment
dhcpd: to which interface wlan1 is attached. **
dhcpd:
dhcpd:
dhcpd: Not configured to listen on any interfaces!
My /etc/network/interfaces contains
auto lo
iface lo inet loopback
iface wlan1 inet static
address 192.168.42.1
netmask 255.255.255.0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
up iptables-restore < /etc/iptables.ipv4.nat
Breaking down the error log
Multiple interfaces match the same subnet: wlan0 eth0
Is subnet labelled as address inside the /etc/network/interfaces file? If so, eth0 has address 192.168.1.100 and wlan0 has address 192.168.1.200. These are different.
Furthermore. When I rearrange my /etc/network/interfaces file and order the blocks as the following
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
iface wlan1 inet static
address 192.168.42.1
netmask 255.255.255.0
up iptables-restore < /etc/iptables.ipv4.nat
The error in my var/sys/log file changes to only
dhcpd: Wrote 0 leases to leases file.
dhcpd: No subnet declaration for wlan1 (no IPv4 addresses).
dhcpd: ** Ignoring requests on wlan1. If this is not what
...
Why does the previous** dhcpd: Multiple interfaces match the same subnet: wlan0 eth0** disappear just because of the ordering of this file? if they match the same subnet then they should always match regardless of declaration right?