Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
fix for #2 and instruction clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
binnes committed Apr 9, 2020
1 parent 7a55dbd commit 693afab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions part1/ROUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,21 @@ A bridge node allows non-mesh devices to use the mesh nodes to connect to the ho
On the selected bridge node run the following on a command line:
1. Install the bridge utilities using command : ```sudo apt-get install -y bridge-utils```
2. Create an interface config for the eth0 interface. This will allow the ethernet port to be *hotplugged*, which means the ethernet cable can be connected and disconnected. Do this by creating file /etc/network/interfaces.d/eth0 as root user and setting the content to:
2. Create an interface config for the eth0 interface. This will allow the ethernet port to be *hotplugged*, which means the ethernet cable can be connected and disconnected. Do this by creating file **/etc/network/interfaces.d/eth0** as root user ```sudo vi /etc/network/interfaces.d/eth``` or ```sudo nano /etc/network/interfaces.d/eth``` and setting the content to:
```text
auto eth0
allow-hotplug eth0
iface eth0 inet manual
```
3. Modify the /etc/dhcpcd.conf file as root use and change the last line to:
3. Modify the /etc/dhcpcd.conf file as root ```sudo vi /etc/dhcpcd.conf``` or ```sudo nano /etc/dhcpcd.conf``` and change the last line to:
```text
denyinterfaces wlan0 eth0 bat0
```
4. Update the configuration file ~/start-batman-adv.sh to setup the bridge
4. Update the configuration file ~/start-batman-adv.sh to setup the bridge ```vi ~/start-batman-adv.sh``` or ```nano ~/start-batman-adv.sh``` and ensure the content matches:
```text
#!/bin/bash
Expand All @@ -130,6 +130,9 @@ On the selected bridge node run the following on a command line:
# Activates batman-adv interfaces
sudo ifconfig wlan0 up
sudo ifconfig bat0 up
# Start DHCP client on bridge interface
sudo dhclient br0
```
5. Shutdown the bridge pi using command ```sudo shutdown -h now```
Expand Down
6 changes: 3 additions & 3 deletions part2/WIFIBRDG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note the configuration below leaves interface eth0 in the configuration, so you
## Configuring the Access point and bridging to br0 interface

1. Install additional software to run the access point using command ```sudo apt-get install -y hostapd```
2. Edit file **/etc/hostapd/wlan1.conf** as root user and set the content to:, you need to create this file, and set the user and set the content to: as:
2. Edit file **sudo vi /etc/hostapd/wlan1.conf** as root user and set the content to:

```text
interface=wlan1
Expand All @@ -37,7 +37,7 @@ Note the configuration below leaves interface eth0 in the configuration, so you
The above configuration sets up a 2.4GHz network on channel 7, again, you can change all the details to match your WiFi dongle and preferred network. You can find details of all possible options for the config file [here](https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf)
3. Edit file **/etc/default/hostapd** as root user and set the content to:, which is used by the startup script for the Access Point service, so it looks like :
3. Edit file **/etc/default/hostapd** as root user. ```sudo vi /etc/default/hostapd``` or ```sudo nano /etc/default/hostapd``` and set the content to:
```text
# Defaults for hostapd initscript
Expand Down Expand Up @@ -69,7 +69,7 @@ Note the configuration below leaves interface eth0 in the configuration, so you
denyinterfaces wlan0 eth0 bat0 wlan1
```
5. Update the **~/start-batman-adv.sh** file to contain the following:
5. Update the **~/start-batman-adv.sh** file ```vi ~/start-batman-adv.sh``` or ```nano ~/start-batman-adv.sh```, so the file contains the following:
```text
#!/bin/bash
Expand Down

0 comments on commit 693afab

Please sign in to comment.