Actions
Bug #662
closedimwww's base address doesn't match dhcpd.conf.uap0
Start date:
12 Aug 2018
Due date:
% Done:
100%
Estimated time:
Severity:
01 - Critical
Description
The /etc/network/dhcpd.conf.uap0 configuration has the following for the network to manage.
subnet 172.21.0.0 netmask 255.255.255.0 {When the users sets a base address using imwww we need to change this to use the network portion of the address. Since this is point-to-point (Iot device to monitor) we can always uses 24/8 for the network portion. So to fix this problem:
- Move /etc/network/dhcpd.conf.uap0 to /etc/network/dhcpd.conf.uap0.template
- Change the subnet IP from 172.21.0.0 to [BASENET]
- Make php/settings-write.php:saveAccessPoint()
- copy the template to /etc/network/dhcpd.conf.uap0
- Swap the [BASENET] tag with the base address, sans host octet.
That way the dhcpd daemon can properly assign IPs to the sensor network.
Updated by Hammel over 6 years ago
- Category deleted (
Monitor) - Status changed from New to Closed
- Target version changed from 0.1.0 - Proof of concept to 0.5.0
- % Done changed from 0 to 100
This was pretty easy. I moved the static config to a template in the monitor package. Then I updated the specified function in imwww. I pushed both to a test node and verified they worked - which they did on the first try.
I've committed and pushed fixes in both repos.
Closing issue.
Actions