diff --git a/handbook/computing/netconfig.html b/handbook/computing/netconfig.html index b272d5b6e..3032a7306 100644 --- a/handbook/computing/netconfig.html +++ b/handbook/computing/netconfig.html @@ -44,8 +44,8 @@ still upright and have not been knocked sideways.
The Acer Aspire One netbook is running Debian Linux operating system with the lightweight [xfce] window mananger. It runs a script once every 60s which checks whether it can access the internet. If it can't, it attempts a re-login to the Gasthof wifi system, which takes 5-10 seconds. If it still can't access the internet it deletes nearly all the configuration and reloads everything - which takes about 30s. The mere fact that it accesses the internet every minute is enough for the Gasthof system to keep the connection open - until it times out completely which it does after an hour or so. -
Because of a permissions difficulty, the scripts on the netbook live in /root/fakenet so that the cron job (running as root) can access them. [This is not the usual Linux place to keep such things.] The cron file lives in the usual place in /etc/cron/cron.d/fakenet. - +
The
When the netbook powers up, the script /etc/init.d/fakenet runs which sets everything going for the first time.
In 2023 we will also have a backup wifi/router in Austria, a £20 TL-WR841N belonging to Wookey which is configured identically to the Netgear device except that the username is 'root' not 'admin'. It is to be used only if the Netgear breaks. -
One important difference is that the ethernet cable from the netbook is plugged into the blue socket on the WR841N (it is yellow on the Netgear), and the 4 white sockets on the Netgear are 4 yellow sockets on the WR841N. A word of warning: the WR841N has been flashed with new firmware and so any documentation you may read in online manuals for it will be wrong: notably the reset and wifi on/off buttons don't have any effect, and the lights don't flash in the way the manuals say they do. There is also no USB socket, no IP6, no 5Ghz, slower ethernet (100Mbps not 1Gbps) and the wifi range out to the tents is worse than the Netgear wifi. +
In 2023 we will also have a backup wifi/router in Austria, a £20 TL-WR841N belonging to Wookey which is configured identically to the Netgear device except that the username is 'root' not 'admin'. It would be good to test this so we could give ARM their WNDR4000 back, and the TP-link router can become expo's. +
One important difference is that the ethernet cable from the netbook is plugged into the blue socket on the WR841N (it is yellow on the Netgear), and the 4 white sockets on the Netgear are 4 yellow sockets on the WR841N. A word of warning: the WR841N has been flashed with new firmware (openWRT) and so any documentation you may read in online manuals for it will be wrong: notably the reset and wifi on/off buttons don't have any effect, and the lights don't flash in the way the manuals say they do. There is also no USB socket, no 5Ghz, slower ethernet (100Mbps not 1Gbps) and the wifi range out to the tents is probably worse than the Netgear wifi.
While you can use 5Ghz wifi and IP6 to connect within the hut, there is no IP6 connectivity to the external internet. Sorry. We are dependent on the Gasthof system for this. Use a phone and data roaming if you want it. @@ -77,7 +77,7 @@ We bridge the hut wifi with the hut ethernet cable to the expo laptop
DNS is what connects a computer name (such as expo.survex.com) with an internet address (such as 78.129.164.125). To make the internet work, we need to tell every laptop and phone where to find a DNS nameserver, or what machine to ask in order to get DNS queries forwarded to a DNS nameserver. -
The DNS configuration happens in the netbook. The Netgear box just forwards DNS queries to the netbook, and tells laptops connected to the hut wifi to use that too. +
The DNS configuration happens in the netbook, using dnsmasq. The Netgear box just forwards DNS queries to the netbook, and tells laptops connected to the hut wifi to use that too.
DHCP is what decides what the x is when the wifi issues an address that a laptop must use when it connects to the wifi as 192.168.1.x. @@ -90,14 +90,17 @@ We bridge the hut wifi with the hut ethernet cable to the expo laptop
2. The benefit of doing it in the netbook is that all the configuration is in the same place, and you only have to learn one way of doing things instead of having to use text files and a web interface. Also, by making the Netgear box completely dumb, it is swap-replaceable if it dies with no reconfiguration required.
The DHCP is configured to issue IP addresses with x between 10 and 199, i.e. laptops and phones will get IP addresses between 192.168.1.10 and 192.168.1.199. These may change after 12 hours. -
The netbook has two network interfaces: the Alfa wifi antenna (which has an address issued by the Gasthof wifi system) plugged into a USB socket, and the netbook's ethernet cable socket which is configured to have the address 10.0.1.2. + +
The netbook has two network interfaces: the Alfa wifi antenna (which is 'wlan1' and has an address issued by the Gasthof wifi system using DHCP) plugged into a USB socket, and the netbook's ethernet cable socket (eth0) which is configured to have the address 10.0.1.2. +wlan0 on the netbook is the internal wifi. +
The Netgear box has its yellow ethernet cable socket set to the address 10.0.1.1. The four other ethernet sockets are all on the address range 192.168.1.x and the wifi network interface is set to 192.168.1.1 also in the network 192.168.1.x.
So the ethernet cable between the Netgear box and the netbook is 10.0.1.1 at the Netgear end and 10.0.1.2 at the netbook end. Nothing else uses any number like 10.0.x.y. -
If everything is working between devices in the hut, but there is no internet access, then the first thing to check is that the black WiFi antennae on the small black Alfa box are still upright and have not been knocked sideways.