Network Bridge

From FlightGear wiki
Jump to navigation Jump to search


It is possible that there will be an increasing number of Raspberries being added to your FlightGear simulator. It is also possible that the location of said simulator only has a WiFi connection, to the home network. Furthermore, the home network might be saturated by other family menbers. It also might be possible that this cluster of devices is using Barrier, to share a common keyboard and mouse. One solution is to use a common WiFi router as a LAN/WLAN Bridge. Now, all the Raspberries can be connected to the fast switch that is part of the Bridge Router and still have a internet connection.

LAN/WLAN Bridge

An excellent guide on how to set up a bridge can be found at Nerd Quickies. It requires flashing the router with OpenWrite software.

Raspberry bridging hints

The ifconfig command is helpful to find information and the address of eth0. After making changes to the Raspberry network settings, use the below commands to activate the modified settings. After making the changes, take the Ethernet down. After a bit of time, use the up command to restart the Ethernet. This is when your changes go into effect.

sudo ifconfig eth0 up #Ethernet
sudo ifconfig eth0 down #Ethernet
Location of the DHCP check box and Raspberry IP address.

The screenshot of the Network Preferences dialog box, shows where the DHCP check box is and the Raspberry address. Right click on the network icon, upper right of the Desktop, next to the speaker icon. Click on Wireless & Wired Network Settings, in order to bring up this dialog box.

Barrier

Barrier allows sharing a common keyboard and mouse between many computers and works with different operating systems. It also allows sharing the clip board. Barrier is in the Raspberry software repository. In order to have a Raspberry boot with Barrier running edit the following file. At the end of the file /home/pi/.profile, place the command barrier &. This will only work if the Raspberry is configured auto login, which is it's default setting. Barrier is not a component of the network bridge, however Barrier's performance will benefit from a network bridge.