wireless_mesh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
wireless_mesh [2014/10/18 15:15] – samer | wireless_mesh [2014/10/19 22:01] – [4- Configuring the Wireless Nodes with B.A.T.M.A.N] samer | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== -- Hardware Requirements ===== | ===== -- Hardware Requirements ===== | ||
+ | Mesh networking performance is directly related to the number of available radio channels. Particularly, | ||
+ | |||
+ | In order to overcome this problem, we implement in this project low cost multi-channel mesh devices consisting of a wireless router with an additional WLAN adapter. A typical equipment list that can be used for implementing the project is presented in the following: | ||
* TP-Link [[http:// | * TP-Link [[http:// | ||
* USB WLAN adapter based on the [[http:// | * USB WLAN adapter based on the [[http:// | ||
Line 99: | Line 102: | ||
Using interface wlan1 with hwaddr 00: | Using interface wlan1 with hwaddr 00: | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | The USB WLAN adapter does not seem to be supported in the latest Barrier Breaker relaease of OpenWRT. Additional packages are installed correctly but the adapter is not detected as a WLAN module. | ||
+ | </ | ||
===== -- Configuring the Wireless Nodes with B.A.T.M.A.N===== | ===== -- Configuring the Wireless Nodes with B.A.T.M.A.N===== | ||
+ | Start by installing the B.A.T.M.A.N package on your router: | ||
+ | <code bash> | ||
+ | root@MeshNode: | ||
+ | </ | ||
+ | |||
+ | Modify your wireless configuration to activate a mesh interface in ad-hoc mode on radio0, an interface in AP mode on radio1, as in the following: | ||
+ | |||
+ | <file autoconf / | ||
+ | config wifi-device ' | ||
+ | option type ' | ||
+ | option macaddr ' | ||
+ | option hwmode ' | ||
+ | option htmode ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | option txpower ' | ||
+ | option country ' | ||
+ | option channel ' | ||
+ | |||
+ | config wifi-iface ' | ||
+ | option device ' | ||
+ | option mode ' | ||
+ | option ssid ' | ||
+ | option encryption ' | ||
+ | option network ' | ||
+ | option ifname ' | ||
+ | option bssid ' | ||
+ | | ||
+ | config wifi-device ' | ||
+ | option type ' | ||
+ | option channel ' | ||
+ | option macaddr ' | ||
+ | option hwmode ' | ||
+ | option htmode ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | list ht_capab ' | ||
+ | |||
+ | config wifi-iface | ||
+ | option device ' | ||
+ | option mode ' | ||
+ | option ssid ' | ||
+ | option encryption ' | ||
+ | option network ' | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | Very few USB WLAN adapters work in ad-hoc mode, thus it is preferable to configure the corresponding radio interface in AP mode and the internal chipset of the MR3020 router in ad-hoc mode. | ||
+ | </ | ||
+ | Use the following network configuration: | ||
+ | |||
+ | <file autoconf / | ||
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option proto ' | ||
+ | option ipaddr ' | ||
+ | option netmask ' | ||
+ | |||
+ | config interface ' | ||
+ | option type ' | ||
+ | option proto ' | ||
+ | option ipaddr ' | ||
+ | option netmask ' | ||
+ | option gateway ' | ||
+ | list dns ' | ||
+ | list dns ' | ||
+ | option _orig_ifname 'eth0 wlan0 wlan1' | ||
+ | option _orig_bridge ' | ||
+ | option ifname ' | ||
+ | |||
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option mtu ' | ||
+ | option proto ' | ||
+ | option mesh ' | ||
+ | |||
+ | config interface tinet | ||
+ | option ifname | ||
+ | option type | ||
+ | option proto static | ||
+ | option ipaddr | ||
+ | option netmask | ||
+ | </ | ||
+ | |||
+ | Make sure that '' | ||
+ | <file autoconf / | ||
+ | config ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | option ' | ||
+ | </ | ||
+ | |||
+ | Activate the DHCP server on you acces point interface '' | ||
+ | <code bash> | ||
+ | config dhcp | ||
+ | option start ' | ||
+ | option leasetime ' | ||
+ | option limit ' | ||
+ | option interface ' | ||
+ | </ | ||
+ | Reboot your router, ... | ||
+ |
wireless_mesh.txt · Last modified: 2014/10/19 22:03 by samer