... | ... | @@ -38,3 +38,30 @@ After applying your changes or adding new configurations it is recommended to re |
|
|
```bash
|
|
|
sudo systemctl restart NetworkManager.service
|
|
|
```
|
|
|
|
|
|
## Static Windows Connection - Share Internet
|
|
|
When using the static direct ethernet connection to for example your computer, the eRTIS device will have no internet connection which can be annoying. However, if your computer is also connected to Wi-Fi to a different internet-capable network, you can share that with the eRTIS device. To do so, do the following steps.
|
|
|
|
|
|
First, Windows automatically chooses a random IP for the ethernet network when sharing the internet and overwrites your chosen static IP in the 192.168.1.X/24 range.
|
|
|
This is annoying so you need to fix this first. Open the registry editor (regedit) on your Windows PC and change the following fields:
|
|
|
- _HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SharedAcces - Parameters - ScopeAddress_
|
|
|
- _HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SharedAcces - Parameters - StandaloneDHCPAddress_
|
|
|
|
|
|
to an IP in the 192.168.1.X/24 range, for example 192.168.1.155.
|
|
|
|
|
|
Now that this is done we can start sharing the internet. On the Windows PC:
|
|
|
- Connect the PC to the WiFi and ensure the internet connection is working locally
|
|
|
- Connect the PC to the eRTIS by setting a static IP v4 connection on the ethernet adapter connected to the device in the 192.168.1.X/24 range and ensure it is reachable over the static IP by SSH.
|
|
|
- Go to Control Panel > Network & Sharing > Network Connections > right-click on the WiFi connection > Properties
|
|
|
- WiFi connection: On the Share tab > Allow other users to connect... If you don't see the share tab, you may want to disable this feature on the other connections (the wired one) for the tab to appear.
|
|
|
- WiFi connection: On the Network tab, Internet Protocol version 4 > Properties > Advanced > Disable Auto metric. Use a low metric (eg. Interface Metric = 5).
|
|
|
|
|
|
Lastly, on the eRTIS run the following command:
|
|
|
```bash
|
|
|
sudo ip route add default via 192.168.1.155 proto static metric 50
|
|
|
```
|
|
|
|
|
|
Replace 192.168.1.155 with the IP that you chose for your computer. You should now have internet access on the eRTIS device, you can test this by logging in over SSH and pinging 8.8.8.8 which should now work.
|
|
|
|
|
|
The official details to share Wi-Fi on Windows are [here](https://support.microsoft.com/en-us/windows/use-your-windows-pc-as-a-mobile-hotspot-c89b0fad-72d5-41e8-f7ea-406ad9036b85#:~:text=Select%20Start%20%2C%20then%20select%20Settings,usually%20faster%20and%20the%20default).
|
|
|
|