Projecte

General

Perfil

Wiki » Historial » Versió 5

Axel Neumann, 25-08-2012 22:30

1 1 Pau Escrich
h1. Wiki
2
3 3 Axel Neumann
4
Bmx6 is a lightweight routing protocol for Linux based operating systems.
5
The following intro provides kind of tutorial to get started.
6
7
In its most simple configuration, the only required parameter are the interfaces names that should be used for meshing.
8
The following example starts bmx6 on interface wlan0:
9
<pre>
10 5 Axel Neumann
root@mlc1001:~# bmx6 dev=wlan0
11 3 Axel Neumann
</pre>
12
13
However, to let this simple command work as expected also check the following basic requirements:
14
15
* bmx6 must be executed in root context (with super user permissions). If you are not already root prepend all commands with sudo (eg: @ sudo bmx6 dev=wlan0 @ ).
16
17
* NO IP address needs to be configured. By default bmx6 assumes IPv6 and autoconfigures an ULA based IPv6 address for each interface. But the interfaces must be UP. The linux ip command can do this for you (eg: @ ip link set wlan0 up @). Also, if you are using a wireless interface, the wireless interface settings must be set correctly so that link-layer connectivity is given with bmx6 daemons running on other nodes (computers). The good old iwconfig command may help to achieve that. For example @ iwconfig wlan0 mode ad-hoc ap 02:ca:ff:ee:ba:be channel 11 essid my-mesh-network @ is a typical configuration for a wireless mesh setup.
18
19
* Bmx6 (by default) works in daemon mode, thus continues to work in background. To let it run in foreground specify a debug level with the startup command like: @bmx6 debug=0 dev=bmx6@ . Of course you may need to kill a previously started bmx6 daemon beforehand (@ killall bmx6 @)
20
21 4 Axel Neumann
If everything went fine bmx6 is running now, searching for neighboring bmx6 daemons via the configured link and coordinates with them to learn about existence-of and routes-to all other bmx6 nodes in the network. 
22
To access status information of the bmx6 daemon which has just been started, a second bmx6 process can be launched in client mode (with the --connect or -c parameter) to connect to the main bmx6 daemon and retrieve the desired information.
23
In the following, a few example will be discussed:
24
<pre>
25 5 Axel Neumann
root@mlc1001:~# bmx6 -c status
26 4 Axel Neumann
version        compatibility codeVersion globalId                     primaryIp                       myLocalId uptime     cpu nodes 
27 1 Pau Escrich
BMX6-0.1-alpha 16            9           mlc1001.E0F9E33CD42EF2980443 fd66:66:66:0:a2cd:efff:fe10:101 24100101  0:00:56:37 0.3 3
28
</pre>
29 5 Axel Neumann
30
So apart from version, compatibility number, and code, the status reveals the daemon's global and local ID, its primary (self-configured) IPv6 address, the time since when it is running (56 minutes), its current cpu consumption (0.3%) and the total number of learned nodes in the network (including itself).
31
32
Typical types of information are: status, interfaces, links, originators, descriptions, tunnels
33
These required types can be combined, so a more informative case would be:
34
<pre>
35
root@mlc1001:~# bmx6 -c status interfaces links originators
36
status:
37
version        compatibility codeVersion globalId                     primaryIp                       myLocalId uptime     cpu nodes 
38
BMX6-0.1-alpha 16            9           mlc1001.6480B336E87B8F8DA8D7 fd66:66:66:0:a2cd:efff:fe10:102 8C100101  0:04:14:15 0.7 3    
39
interfaces:
40
devName state type     rateMin rateMax llocalIp                    globalIp                           multicastIp primary 
41
wlan0   UP    wireless 6222K   56000K  fe80::a2cd:efff:fe10:101/64 fd66:66:66:0:a2cd:efff:fe10:101/64 ff02::2     1       
42
links:
43
globalId                     llocalIp                 viaDev  rxRate txRate bestTxLink routes wantsOgms nbLocalId 
44
mlc1002.4CA9926CF823599148DF fe80::a2cd:efff:fe10:201 wlan0   100    100    1          1      1         3D100201  
45
mlc1000.2C4BA11B70E50B889B90 fe80::a2cd:efff:fe10:1   wlan0   100    100    1          1      1         DA100001  
46
originators:
47
globalId                     blocked primaryIp                       routes viaIp                    viaDev  metric lastDesc lastRef 
48
mlc1000.2C4BA11B70E50B889B90 0       fd66:66:66:0:a2cd:efff:fe10:1   1      fe80::a2cd:efff:fe10:1   eth1.12 999M   14925    2      
49
mlc1001.6480B336E87B8F8DA8D7 0       fd66:66:66:0:a2cd:efff:fe10:101 0      ::                       ---     128G   14928    0      
50
mlc1002.4CA9926CF823599148DF 0       fd66:66:66:0:a2cd:efff:fe10:201 1      fe80::a2cd:efff:fe10:201 eth1.12 999M   14928    2      
51
</pre>
52
53
54 4 Axel Neumann
55
56
57 3 Axel Neumann
58
59
60
61
62
63
64
[[config-plugin]]
65
66
[[json-plugin]]
67
68
[[sms-plugin]]
69
70
[[quagga-plugin]]
71
72
73
*Misc*
74
75
76 2 Pau Escrich
[[Tunnel]]