Difference between revisions of "ConfigNetwork"
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Network}} | {{DISPLAYTITLE:Network}} | ||
− | [[Category: | + | [[Category:HamsterV6]] |
+ | [[Category:HamsterV5]] | ||
+ | [[Category:HamsterV4]] | ||
+ | [[Category:HamsterV7]] | ||
=== Network === | === Network === | ||
Line 7: | Line 10: | ||
== Hamster Network topology == | == Hamster Network topology == | ||
+ | <syntaxhighlight lang="bash" line='line'> | ||
Name: hamster_net | Name: hamster_net | ||
Security: WPA2 personal | Security: WPA2 personal | ||
Line 13: | Line 17: | ||
Netmask: 255.255.255.0 | Netmask: 255.255.255.0 | ||
Router's IP: 10.0.2.138 | Router's IP: 10.0.2.138 | ||
− | + | </syntaxhighlight> | |
+ | |||
== Router configuration, 2nd PI == | == Router configuration, 2nd PI == | ||
In order to reach the slave raspberry pi on each Hamster, configure the routing table as following: | In order to reach the slave raspberry pi on each Hamster, configure the routing table as following: | ||
Line 19: | Line 24: | ||
* Go to Advanced Routing → Static Routing List → Add... | * Go to Advanced Routing → Static Routing List → Add... | ||
* For each robot (numbered <n>), add the corresponding entry: | * For each robot (numbered <n>), add the corresponding entry: | ||
− | + | ||
+ | <syntaxhighlight lang="bash" line='line'> | ||
Destination IP: 192.168.<n>.0 | Destination IP: 192.168.<n>.0 | ||
Subnet Mask: 255.255.255.0 | Subnet Mask: 255.255.255.0 | ||
Default gateway: 10.0.2.<n> | Default gateway: 10.0.2.<n> | ||
+ | </syntaxhighlight> | ||
+ | |||
== Configuring the Hamsters' IP == | == Configuring the Hamsters' IP == | ||
Line 29: | Line 37: | ||
Robot 1 configuration: | Robot 1 configuration: | ||
− | Master raspberry pi IP: 10.0.2.1 or 192.168.1.1 | + | * Master raspberry pi IP: 10.0.2.1 or 192.168.1.1 |
− | Slave raspberry pi IP: 192.168.1.2 | + | * Slave raspberry pi IP: 192.168.1.2 |
Robot 2 configuration: | Robot 2 configuration: | ||
− | Master raspberry pi IP: 10.0.2.2 or 192.168.2.1 | + | * Master raspberry pi IP: 10.0.2.2 or 192.168.2.1 |
− | Slave raspberry pi IP: 192.168.2.2 | + | * Slave raspberry pi IP: 192.168.2.2 |
The Hamster's connection configurations can be changed in the /etc/network/interfaces , and /wpa_supplicant/wpa_supplicant.conf . | The Hamster's connection configurations can be changed in the /etc/network/interfaces , and /wpa_supplicant/wpa_supplicant.conf . | ||
SSH connection details: | SSH connection details: | ||
+ | <syntaxhighlight lang="bash" line='line'> | ||
Username: pi | Username: pi | ||
Password: hamster | Password: hamster | ||
+ | </syntaxhighlight> |
Latest revision as of 07:27, 2 July 2020
Contents
Network
In case you are not using a preconfigured router, the following describes the router needed configuration.
Hamster Network topology
<syntaxhighlight lang="bash" line='line'> Name: hamster_net Security: WPA2 personal Password: hamsterHAMSTER
Netmask: 255.255.255.0 Router's IP: 10.0.2.138 </syntaxhighlight>
Router configuration, 2nd PI
In order to reach the slave raspberry pi on each Hamster, configure the routing table as following:
- Go to Advanced Routing → Static Routing List → Add...
- For each robot (numbered <n>), add the corresponding entry:
<syntaxhighlight lang="bash" line='line'> Destination IP: 192.168.<n>.0 Subnet Mask: 255.255.255.0 Default gateway: 10.0.2.<n> </syntaxhighlight>
Configuring the Hamsters' IP
Hamster robots arrive with a pre-configured specific IP’s. Unless you know what you are doing, this should not be changed.
Robot 1 configuration:
- Master raspberry pi IP: 10.0.2.1 or 192.168.1.1
- Slave raspberry pi IP: 192.168.1.2
Robot 2 configuration:
- Master raspberry pi IP: 10.0.2.2 or 192.168.2.1
- Slave raspberry pi IP: 192.168.2.2
The Hamster's connection configurations can be changed in the /etc/network/interfaces , and /wpa_supplicant/wpa_supplicant.conf .
SSH connection details: <syntaxhighlight lang="bash" line='line'> Username: pi Password: hamster </syntaxhighlight>