I've got a particular situation, and there is likely one correct way of solving it, and numerous wrong ways.
So far, I've been picking all the wrong ways.
I want to make it a wifi hostpot and serve DHCP on the wifi interface only.
I've got as far as giving the server an IP address and configured the hotpot.
The physical interface on eth0 is 192.168.1.253/24 and the gateway is 192.168.1.254 on another machine. I can attach a laptop to the wifi hotspot, give it a fixed IP of 192.168.1.50 and I can route and resolve DNS.
My only problem now is DHCP against the wlan0 interface.
I added the following into dhcpd.conf...
The service fails to start because the wlan interface has picked up the IP 10.42.0.1 and thus when I try to start the isc-dhcp-server.service I get...
So there are a number of approaches I could take. Give wlan0 an IP on the 192.168.1.x and then do I give it the same as eth0 192.168.1.253 or give it a different IP. Find some way to attach that subnet declaration against wlan0 in the configuration file even though it's on a different IP.
For reference, isc-dhcp-server has wlan0 against the interfacesv4 setting.
I have tried changing the IP address for wlan0 into the same range, ti 192.168.1.252 and also the same IP as the eth0 address 192.168.1.253... but then everything goes to toast.
Grateful for advice.
So far, I've been picking all the wrong ways.
I want to make it a wifi hostpot and serve DHCP on the wifi interface only.
I've got as far as giving the server an IP address and configured the hotpot.
The physical interface on eth0 is 192.168.1.253/24 and the gateway is 192.168.1.254 on another machine. I can attach a laptop to the wifi hotspot, give it a fixed IP of 192.168.1.50 and I can route and resolve DNS.
My only problem now is DHCP against the wlan0 interface.
I added the following into dhcpd.conf...
Code:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.254, 192.168.0.15;
default-lease-time 600;
max-lease-time 7200;
}
The service fails to start because the wlan interface has picked up the IP 10.42.0.1 and thus when I try to start the isc-dhcp-server.service I get...
Code:
Jan 31 09:11:03 iphotspot dhcpd[950]: No subnet declaration for wlan0 (10.42.0.1).
Jan 31 09:11:03 iphotspot dhcpd[950]: ** Ignoring requests on wlan0. If this is not what
Jan 31 09:11:03 iphotspot dhcpd[950]: you want, please write a subnet declaration
Jan 31 09:11:03 iphotspot dhcpd[950]: in your dhcpd.conf file for the network segment
Jan 31 09:11:03 iphotspot dhcpd[950]: to which interface wlan0 is attached. **
For reference, isc-dhcp-server has wlan0 against the interfacesv4 setting.
I have tried changing the IP address for wlan0 into the same range, ti 192.168.1.252 and also the same IP as the eth0 address 192.168.1.253... but then everything goes to toast.
Grateful for advice.