From 2147e5a11eb05ac003a7d6c5b2ff01004bfdef34 Mon Sep 17 00:00:00 2001 From: Expo on server Date: Sat, 8 Jul 2023 13:01:19 +0100 Subject: [PATCH] update ip addresses and router generic, not Netgear - online edit of handbook/computing/netconfig.html --- handbook/computing/netconfig.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/handbook/computing/netconfig.html b/handbook/computing/netconfig.html index 8eec0bf34..c7f3ebf2f 100644 --- a/handbook/computing/netconfig.html +++ b/handbook/computing/netconfig.html @@ -88,14 +88,14 @@ there is no IP6 connectivity to the external internet. Sorry. We are dependent o We bridge the hut wifi with the hut ethernet cable to the expo laptop so they are both 192.168.200.x, but this is a matter of choice. This is configured inside the wifi/router using the webpage control panel.

Where the DNS happens

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, using dnsmasq. 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 router just forwards DNS queries to the netbook, and tells laptops connected to the hut wifi to use that too.

Where the DHCP happens

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.200.x. @@ -104,28 +104,27 @@ We bridge the hut wifi with the hut ethernet cable to the expo laptop

  • 2017-2019 : in the netbook.
  • 2022-2023 : in the router (Netgear or tp-link) box. -

    1. The benefit of doing it in the router 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. -

    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 50 and 199, i.e. laptops and phones will get IP addresses between 192.168.200.50 and 192.168.200.199. These may change after 12 hours. -

    The router itself is 192.168.200.1 +

    1. The benefit of doing it in the router box is that you get to play with a graphical web interface not text files. But also you can test that the router is working separately from everything else. +

    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 router completely dumb, it is swap-replaceable if it dies with no reconfiguration required. +

    The DHCP is configured to issue IP addresses with x between 50 and 199, i.e. laptops and phones will get IP addresses between 192.168.250.50 and 192.168.250.199. These may change after 12 hours. +

    The router itself is 192.168.250.1 -

    We also have the address 192.168.200.100 reserved for the expo laptop crowley in both routers. +

    We also have the address 192.168.250.200 reserved for the expo laptop crowley in both routers.

    Interfaces

    The netbook has two network interfaces: the Alfa wifi antenna (which is 'wlan1' and has an address 192.168.2.x 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 netbook also has a defunct interface 'wlan0' which is the internal wifi which is broken and unused. However it can cause configuration problems (notably for the first few days of expo 2023). These are the runes to type on the netbook to stop it interfering:

    sudo ip addr add 10.0.42.1/24 dev wlan0
     sudo ip addr del 10.0.1.1/24 dev wlan0
    -

    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.200.x and the wifi network interface is set to 192.168.200.1 also in the network 192.168.200.x. +

    The router has its WAN (yellow or blue ethernet cable socket) set to the address 10.0.1.1. The four other ethernet sockets are all on the address range 192.168.250.x and the wifi network interface is set to 192.168.250.1 also in the network 192.168.250.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.1.x. +

    So the ethernet cable between the router and the netbook is 10.0.1.1 at the router end and 10.0.1.2 at the netbook end. Nothing else uses any number like 10.0.1.x.

    The line

    sudo ip addr del 10.0.1.1/24 dev wlan0
    @@ -145,8 +144,10 @@ the black WiFi antennae on the small black Alfa box are still upright and have n

    Test whether the netbook is actually running and responding by sitting at the expo laptop and logging into the netbook remotely. Do this in a terminal window:

    ssh expo@tclaspire3.potatohut
    +or +
    ssh tclaspire3
    -

    If you get a login prompt, the netbook is running. It is a slow machine so do not expect this to be instant. +

    If you get a login prompt, the netbook is running. It is a slow machine so do not expect this to be instant. (You are logged in as 'expo' on the expo laptop so it automatically logs you in as 'expo' on the netbook.)

    Login to the netbook (as user 'expo' using the cavey:beery password) and type this at a prompt:

    /root/fakenet/runfakenet
    which will run the script to reconnect. This may take a minute to have the desired effect.