hut networking

This commit is contained in:
Philip Sargent 2023-03-28 15:48:36 +01:00 committed by Wookey
parent 29b10ea9e2
commit f4ac133f62
2 changed files with 20 additions and 17 deletions

View File

@ -105,6 +105,8 @@ if you can't get your own laptop or phone to work with the printer.
(survex/aven, tunnelx, therion, git etc.) and you login to it using the username "expo" and the usual cavey:beery password. It has the identical[Cinnamon/Debian] configuration and survey software installed as Crowley. It is a big, heavy R61 14-inch Thinkpad on loan from Michael Sargent and it is called "Aziraphale". (Note that Azirophale's SD code slot doesn't work).
<p>Both laptops have had RAM upgrades and solid-state disc upgrades over winter 2022/23. They each hold a local complete copy of <em>expofiles</em> and the <em>expoweb, loser, drawings and troggle</em> <a href="repos.html">repositories</a> but do not have the troggle software configured to run locally, though this could be enabled if necessary.
<h4>Laptop batteries</h4>
<p>Both expo laptops are old and have bad batteries. Crowley only runs 10-20 minutes on battery and Aziraphale only about half an hour or so. So both should be run permanently plugged in to mains power. The netbook may not even boot up on battery.
<figure class="onright" >
<a href="../l/hut-cables.html"><img border=1 width=250 src="../t/hut-cables-small.jpg"></a>
@ -112,7 +114,7 @@ if you can't get your own laptop or phone to work with the printer.
</figure>
<h3 id="network">Networking Hardware - wiring up</h3>
<p>The networking hardware is three boxes: an Alfa high-gain antenna device, an Acer Aspire One netbook and a Netgear WRT4000 ethernet box. These keep us logged in to the Gasthof to provide WiFi in the hut.
<p>The networking hardware is three boxes: an Alfa high-gain antenna device, an Acer Aspire One netbook and a Netgear WRT4000 ethernet/wifi box. These keep us logged in to the Gasthof to provide WiFi in the hut.
<p>As normal WiFi does not reach across the road to the Gasthof, we have
a high-power dual antenna WiFi tiny black box (Alfa 036ACH) on a small shelf high above the sink/stove area and connected via a usb cable to the tiny dark-blue Acer netbook 'tclaspire3' which is connected by ethernet cable to the Netgear box. It is the Netgear box which provides the WiFi in the hut. </p>
<p>Note that we have <a href="../l/hut-cables.html">4 different</a> power-supply bricks.

View File

@ -28,16 +28,16 @@ still upright and have not been knocked sideways.
<h3>Expo laptops</h3>
<p>Both expo laptops Clowley and Aziraphale use DHCP over wifi to get an IP4 address and the identity of a DNS nameserver. Neither laptop has any other configuration.
<p>If you connect your laptop or phone to the Potato hut wifi you will connect in the same way.
<p>Both expo laptops Crowley and Aziraphale use DHCP over wifi to get an IP4 address and the identity of a DNS nameserver. Neither laptop has any other configuration.
<p>If you connect your laptop or phone to the potato hut wifi you will connect in the same way.
<h3>The Gasthof Wifi</h3>
<p>The Gasthof WiFi - which you can use if you are close enough - is "StaudnGast" and has no WiFi password but there is a login webpage. It allocates IP addresses in the range <samp>192.168.2.x</samp> etc. The antenna is now on the first-floor balcony within sight of the tatty hut window. You can get the password from the Gasthof front desk, or during expo it is usally written on the whiteboard in the potato hut. In the scripts published in this handbook we use the word GASTSECRET instead of the real password.
<p>If you are not actively using the internet, the Gasthof system will close the connection and you will have to re-login again, typing the password into the login page.
<p>The Gasthof WiFi - which you can use if you are close enough to the main building - is "StaudnGast" and has no WiFi password but there is a login webpage. It allocates IP addresses in the range <samp>192.168.2.x</samp> etc. The antenna is now on the first-floor balcony within sight of the tatty hut window. You can get the password from the Gasthof front desk, or during expo it is usally written on the whiteboard in the potato hut. In the scripts published in this handbook we use the word GASTSECRET instead of the real password.
<p>If you are not actively using the internet, the Gasthof system will close the connection after a few minutes and you will have to re-login again, typing the password into the login page.
<h3>The Potato hut Wifi</h3>
<p>The potato hut WiFi has <a href="https://www.howtogeek.com/334935/what-is-an-ssid-or-service-set-identifier/">SSID</a> "tattyhut" with our usual cavey:beery password. Like almost every other wifi anywhere it is running DHCP and allocating IP addresses to your device.
<h3>The potato hut wifi</h3>
<p>The potato hut wiFi has <a href="https://www.howtogeek.com/334935/what-is-an-ssid-or-service-set-identifier/">SSID</a> "tattyhut" with our usual cavey:beery password. Like almost every other wifi anywhere it is running DHCP and allocating IP addresses to your device.
<p>The DHCP system is issuing IP4 addresses of the form <samp>192.168.1.x</samp> where x is a number between 11 and 199 with a lifetime of 48 hours.
<p>The <em>Expo laptops</em> acquire a dynamic local address of this form, as does any other laptop or phone connecting to this wifi.
@ -57,7 +57,7 @@ reconnect' checkbox for the "StaudnGast" network.
<h4>Netgear WNDR4000</h4>
<p>The Netgear ethernet/wifi hub holds the radio transceiver that provides the wifi coverage inside the potato hut.
It is configured using its web control panel. It has an <a href="https://manualmachine.com/netgear/wndr4000/816208-user-manual/">online manual</a> but it needs no configuration at all during expo. Just turn it on at the beginning of expo and off again at the end.
It is configured using its web control panel (https://192.168.1.1). It has an <a href="https://manualmachine.com/netgear/wndr4000/816208-user-manual/">online manual</a> but it needs no configuration at all during expo. Just turn it on at the beginning of expo and off again at the end.
<h4>IP6</h4>
<p>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.
@ -79,22 +79,23 @@ We bridge the hut wifi with the hut ethernet cable to the <var>expo laptop</var>
<h4>Where the DHCP happens</h4>
<p>DHCP is what decides what the <samp>x</samp> is when the wifi issues an address that a laptop must use when it connects to the wifi as <samp>192.168.1.x</samp>.
<p>We have done this in two different ways:
<ul>
<ol>
<li>2017-2019 : in the netbook.
<li>2022 : in the Netgear box.
</ul>
<p>The benefit of doing it in the Netgear box is that you get to play with a graphical web interface not text files.
<p>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 <em>and</em> a web interface. Aslo, by making the Netgear box completely dumb, it is swap-replaceable if it dies with no reconfiguration required.
</ol>
<p>1. The benefit of doing it in the Netgear box is that you get to play with a graphical web interface not text files. But also you can test that the Netgear box is working separately from everything else.
<p>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 <em>and</em> a web interface. Aslo, by making the Netgear box completely dumb, it is swap-replaceable if it dies with no reconfiguration required.
<h4>Static addresses</h4>
<p>The netbook has two interfaces: the Alfa wifi antenna (which has an address issud by the Gasthof wifi system), and its ethernet cable socket which is configured to have the address <samp>10.0.1.2</samp>.
<p>The netbook has two network interfaces: the Alfa wifi antenna (which has an address issud by the Gasthof wifi system) plugged into a USB socket, and its ethernet cable socket which is configured to have the address <samp>10.0.1.2</samp>.
<p>The Netgear box has its yellow ethernet cable socket set to the address <samp>10.0.1.1</samp>. The four other ethernet sockets are all on the address range <samp>192.168.1.x</samp> and the wifi network interface is set to <samp>192.168.1.1</samp> on the same network range.
<h2>The scripts</h2>
<p>
<strike>
<p>Because the netbook is on a different network from the laptops connecting to the hut wifi, you can't directly login to the netbook using <var>ssh</var> to the IP address (ssh expo@10.0.1.2), but you can using its name, so <var> ssh expo@tclaspire3.potatohut</var> should work if everything has been configured correctly.
<p>
This is the address to use for configuring it using ssh when everything else has failed. So to manage the
connection to the Gasthof WiFi you would use
<pre>