Projecte

General

Perfil

Gateways » Historial » Versió 6

Pau Escrich, 29-12-2012 18:30

1 1 Pau Escrich
h1. Gateways
2
3 3 Pau Escrich
The gateways of the mesh are those nodes who are able to reach some other networks, such as the Internet or another wireless community,and are used as a door for the nodes of the mesh who cannot reach these networks directly.
4 1 Pau Escrich
5 4 Pau Escrich
In bmx6 these gateways are reached using IP tunnels between the node who offer the network and the node who wants to fetch the network. 
6 1 Pau Escrich
7 6 Pau Escrich
8
9 2 Pau Escrich
A node (not gateway) should look for some specific network, as shown in the next */etc/config/bmx6* configuration example:
10 1 Pau Escrich
11 2 Pau Escrich
<pre>
12 1 Pau Escrich
config 'tunOut'
13
	option 'tunOut' 'ipv6'
14
	option 'network' '::/0'
15
16
config 'tunOut'
17
	option 'tunOut' 'inet'
18
	option 'network' '0.0.0.0/0'
19
	option 'maxPrefixLen' '0'
20
	
21
config 'tunOut'  
22
	option 'tunOut' 'guifi'    
23
	option 'network' '10.0.0.0/8'
24
	option 'maxPrefixLen' '8'
25
	
26
config 'tunOut'
27
	option 'tunOut' 'cloud'
28
	option 'network' '10.0.0.0/8'
29
	option 'minPrefixLen' '16'
30 2 Pau Escrich
</pre>
31 1 Pau Escrich
32 5 Pau Escrich
33 2 Pau Escrich
# *ipv6* Look for all IPv6 announcements
34
# *inet* Look only for v4 internet 0.0.0.0/0 (and not smaller)
35
# *guifi* Look for the big announcements to other networks, inside the subnetwork 10.0.0.0/8 not smaller than /8
36
# *cloud* Lookg for all (small) announcements from /16 to /32 inside the subnetwork 10.0.0.0/8
37 5 Pau Escrich
38
39
In the mesh network there might be several gateways publishing the same network, in such case the node will choose his best path.
40
There are many options which can be used to modify the path decision, for instance one quite useful is the "gwName".
41
42
<pre>
43
config 'tunOut'  
44
	option 'tunOut' 'guifi'    
45
	option 'network' '10.0.0.0/8'
46 1 Pau Escrich
	option 'maxPrefixLen' '8'
47 6 Pau Escrich
	option 'gwName' 'GSmVictoria-RK71'
48 5 Pau Escrich
</pre>
49
50
In this example, if exist a node named "GSmVictoria-RK71" publishing the network 10.0.0.0/8 it will be selected and not the another ones.