I'm trying to setup AP mode on BCM4313 wireless card.
My very basic hostapd config looks like this:
interface=wlan0
driver=nl80211
ssid=test
hw_mode=b
channel=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=1234567890
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
The network is set up successfully an I'm able to connect to my network. However, connection process stops at obtaining IP address.
So, my dhcpd.conf file looks pretty much the same as default with following insertions:
# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600;
#max-lease-time 7200;
...
option broadcast-address 10.10.0.255;
subnet 10.10.0.0 netmask 255.255.255.0 {
interface wlan0;
range 10.10.0.2 10.10.0.16;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 10.10.0.1;
}
My wlan0 interface is configured (I guess) properly:
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
inet 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255
ether 55:28:cc:23:14:a6 txqueuelen 1000 (Ethernet)
When /etc/default/isc-dhcp-server has following lines:
DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
INTERFACESv4="wlan0"
After all, journalctl -xe gives me this output:
Jul 10 10:11:25 srv dhcpd[3296]: Wrote 0 leases to leases file.
Jul 10 10:11:25 srv dhcpd[3296]:
Jul 10 10:11:25 srv dhcpd[3296]: No subnet declaration for wlan0 (no IPv4 addresses).
Jul 10 10:11:25 srv dhcpd[3296]: ** Ignoring requests on wlan0. If this is not what
Jul 10 10:11:25 srv dhcpd[3296]: you want, please write a subnet declaration
Jul 10 10:11:25 srv dhcpd[3296]: in your dhcpd.conf file for the network segment
Jul 10 10:11:25 srv dhcpd[3296]: to which interface wlan0 is attached. **
Jul 10 10:11:25 srv dhcpd[3296]:
Jul 10 10:11:25 srv dhcpd[3296]:
Jul 10 10:11:25 srv dhcpd[3296]: Not configured to listen on any interfaces!
Jul 10 10:11:25 srv dhcpd[3296]:
Jul 10 10:11:25 srv dhcpd[3296]: If you think you have received this message due to a bug rather
Jul 10 10:11:25 srv dhcpd[3296]: than a configuration issue please read the section on submitting
Jul 10 10:11:25 srv dhcpd[3296]: bugs on either our web page at www.isc.org or in the README file
Jul 10 10:11:25 srv dhcpd[3296]: before submitting a bug. These pages explain the proper
Jul 10 10:11:25 srv dhcpd[3296]: process and the information we find helpful for debugging..
Jul 10 10:11:25 srv dhcpd[3296]:
Jul 10 10:11:25 srv dhcpd[3296]: exiting.
Jul 10 10:11:27 srv isc-dhcp-server[3283]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostics. ... failed!
Jul 10 10:11:27 srv isc-dhcp-server[3283]: failed!
Jul 10 10:11:27 srv systemd[1]: isc-dhcp-server.service: Control process exited, code=exited status=1
Jul 10 10:11:27 srv systemd[1]: Failed to start LSB: DHCP server.
This is my /etc/network/interfaces:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 10.10.0.1
netmask 255.255.255.0
The sudo apt-get install -f command has already been tried without effect.
I've seen plenty questions similar to mine(1,2,3) but they are all not suitable for my case. How do I get dhcp server working?