chootka / subnodes

Subnodes is an open source project that configures your Raspberry Pi as a wireless AP, Node.js server, and BATMAN ADV mesh point.
Other
205 stars 39 forks source link

No IP address assigned #13

Open memolipd opened 8 years ago

memolipd commented 8 years ago

using a Pi 2, and Jessie there are a couple of issues:

Any ideas? I'll try it with wheezy now

memolipd commented 8 years ago

Script works on Wheezy.

Nodeswitch commented 8 years ago

I can second the last two issues. Running off of the latest Jessie build of Raspbian with a fresh install.

Happy to help with any testing. Here's a wee excerpt from syslog, if that helps.

Jan 18 03:36:23 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:36:24 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:36:27 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:43:18 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:43:18 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:44:48 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:45:41 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: disassociated due to inactivity
Jan 18 03:45:41 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:47:11 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:45:42 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Jan 18 03:47:26 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:47:26 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:48:56 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:48:57 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:48:57 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:50:27 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:49:29 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:50:04 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: authenticated
Jan 18 03:50:04 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: associated (aid 1)
Jan 18 03:50:04 batman hostapd: ap0: STA cc:29:f5:76:a7:29 RADIUS: starting accounting session 569B7842-00000012
Jan 18 03:50:04 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:50:06 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:50:08 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:50:09 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:51:39 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:53:09 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:51:39 batman systemd[1]: Starting user-1000.slice.
Jan 18 03:51:39 batman systemd[1]: Created slice user-1000.slice.
Jan 18 03:51:39 batman systemd[1]: Starting User Manager for UID 1000...
Jan 18 03:51:39 batman systemd[1]: Starting Session c1 of user pi.
Jan 18 03:51:39 batman systemd[1]: Started Session c1 of user pi.
Jan 18 03:51:39 batman systemd[5074]: Starting Paths.
Jan 18 03:51:39 batman systemd[5074]: Reached target Paths.
Jan 18 03:51:39 batman systemd[5074]: Starting Timers.
Jan 18 03:51:39 batman systemd[5074]: Reached target Timers.
Jan 18 03:51:39 batman systemd[5074]: Starting Sockets.
Jan 18 03:51:39 batman systemd[5074]: Reached target Sockets.
Jan 18 03:51:39 batman systemd[5074]: Starting Basic System.
Jan 18 03:51:39 batman systemd[5074]: Reached target Basic System.
Jan 18 03:51:39 batman systemd[5074]: Starting Default.
Jan 18 03:51:39 batman systemd[5074]: Reached target Default.
Jan 18 03:51:39 batman systemd[5074]: Startup finished in 39ms.
Jan 18 03:51:39 batman systemd[1]: Started User Manager for UID 1000.
Jan 18 03:54:42 batman dhcpcd[515]: eth0: fe80::c23e:fff:fe66:7248 router available
Jan 18 03:54:42 batman rsyslogd-2007: action 'action 17' suspended, next retry is Mon Jan 18 03:56:12 2016 [try http://www.rsyslog.com/e/2007 ]
Jan 18 03:55:21 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: disassociated due to inactivity
Jan 18 03:55:22 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Jan 18 03:55:23 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: authenticated
Jan 18 03:55:23 batman hostapd: ap0: STA cc:29:f5:76:a7:29 IEEE 802.11: associated (aid 1)
Jan 18 03:55:23 batman hostapd: ap0: STA cc:29:f5:76:a7:29 RADIUS: starting accounting session 569B7842-00000013
Jan 18 03:55:23 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:55:24 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0
Jan 18 03:55:27 batman dnsmasq-dhcp[1095]: no address range available for DHCP request via br0

And here's dnsmasq.conf, which hasn't been changed.

interface=br0
address=/#/192.168.3.1
address=/apple.com/0.0.0.0
dhcp-range=192.168.3.101,192.168.3.254,255.255.255.0,1h
MarioDBianchi commented 7 years ago

Same here, but if I assign the 192.168.3.1 address manually to br0 it starts assigning DHCP addresses to the clients.

sudo ifconfig br0 192.168.3.1