Projecte

General

Perfil

Config » Historial » Versió 4

Pau Escrich, 09-01-2013 17:36

1 1 Pau Escrich
h1. Config
2
3 2 Pau Escrich
<pre>
4 1 Pau Escrich
config 'qmp' 'interfaces'
5
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
6 4 Pau Escrich
        option 'lan_devices'      'eth0 wlan1 dummy0'       # LAN (dhcp server)
7
        option 'wan_devices'      'eth1'                    # WAN (dhcp client)
8
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # Mesh devices, will be extended by VLAN tag!
9
        option 'no_vlan_devices'   ''                       # Network devices where we do not want to use VLAN tag (not recommended!)
10 1 Pau Escrich
11
config 'qmp' 'node'
12
	option 'primary_device' 'eth0'
13
	option 'community_id' 'qMp'
14
	option 'community_node_id' ''
15
	option 'key' '/tmp/qmp_key'
16
17
config 'qmp' 'update'
18
	option 'url' 'http://fw.qmp.cat/testing'
19
	option 'images' 'IMAGES'
20
	option 'devices' 'DEVICES'
21
	option 'filter' 'sysupgrade'
22
	option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'
23
24 4 Pau Escrich
# This is for Roaming mode
25
# Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on LAN device
26 1 Pau Escrich
config 'qmp' 'non_overlapping'
27 4 Pau Escrich
        option 'ignore'              '0'  
28 1 Pau Escrich
        option 'dhcp_offset'         '2'
29
        option 'qmp_leasetime'       '1h'
30
31
config 'qmp' 'networks'
32
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
33
        option 'lan_address'         '172.30.22.1'
34
        option 'lan_netmask'         '255.255.255.0'
35 4 Pau Escrich
36
        # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
37
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   
38 3 Pau Escrich
        option 'mesh_vid_offset'     '10'
39
40 4 Pau Escrich
        # rescue network prefix, the 16 missing bits are taken from device MAC 
41
	option 'rescue_prefix24'     '169.254' 
42 3 Pau Escrich
43 4 Pau Escrich
        # OLSR (backup protocol) only supports IPv6
44 3 Pau Escrich
        option 'olsr6_mesh_prefix48' 'fd01:0:0'
45
        option 'olsr6_ripe_prefix48' '2011:0:0'
46
47 4 Pau Escrich
        # BMX6 (main protocol) runs IPv6 backbone and IPv4 tunneled
48 3 Pau Escrich
        option 'bmx6_mesh_prefix48'  'fd02:0:0'
49
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
50
        option 'bmx6_ipv4_prefix24'  '10.202'
51
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
52
                                                       # community_node_id and bmx6_ipv4_prefix
53
	option 'bmx6_tablePrefTuns'  '7000'
54
	option 'bmx6_tableTuns'      '70'
55
	option 'bmx6_throwRules'     '1'
56
57
        option 'babel_mesh_prefix48' 'fd03:0:0'
58
	option 'netserver' '1'
59
60
config 'qmp' 'tunnels'
61
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
62
        option 'search_ipv6_tunnel'  '::/0'
63
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
64
#       option 'offer_ipv6_tunnel'  '::/0'
65
66
67
config 'qmp' 'wireless'
68
        option 'driver'  'mac80211'
69
        option 'country' 'SP'
70
        option 'bssid'   '02:CA:FF:EE:BA:BE'
71
config 'qmp' 'interfaces'
72
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
73
        option 'lan_devices'      'eth0 wlan1 dummy0'       # will be used as is!
74
        option 'wan_devices'      'eth1'                    # will be used as is!
75
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # will be extended by vlan tag!
76
77
config 'qmp' 'node'
78
	option 'primary_device' 'eth0'
79
	option 'community_id' 'qMp'
80
	option 'community_node_id' ''
81
	option 'key' '/tmp/qmp_key'
82
83
config 'qmp' 'update'
84
	option 'url' 'http://fw.qmp.cat/testing'
85
	option 'images' 'IMAGES'
86
	option 'devices' 'DEVICES'
87
	option 'filter' 'sysupgrade'
88
	option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'
89
90
config 'qmp' 'non_overlapping'
91
        option 'ignore'              '0'  # Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on lan device
92
        option 'dhcp_offset'         '2'
93
        option 'qmp_leasetime'       '1h'
94
95
config 'qmp' 'networks'
96
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
97
        option 'lan_address'         '172.30.22.1'
98
        option 'lan_netmask'         '255.255.255.0'
99 1 Pau Escrich
        #option 'publish_lan'	     '0'
100
	#option 'niit_prefix96'       '0:0:0:0:0:ffff'        # omit trailing 32 ipv4 bits !
101
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
102
        option 'mesh_vid_offset'     '10'
103
104
	option 'rescue_prefix24'     '169.254' # rescue network prefix, the 16 missing bits are taken from device MAC 
105
106
        option 'olsr6_mesh_prefix48' 'fd01:0:0'
107
        option 'olsr6_ripe_prefix48' '2011:0:0'
108
        option 'olsr6_ipv4_prefix24' '10.201'
109
#       option 'olsr6_ipv4_address'  '10.201.9.01'
110
#       option 'olsr6_ipv4_netmask'  '255.255.255.0'
111
#       option 'olsr6_6to4_netmask'  '120'
112
113
        option 'bmx6_mesh_prefix48'  'fd02:0:0'
114
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
115
        option 'bmx6_ipv4_prefix24'  '10.202'
116
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
117
                                                       # community_node_id and bmx6_ipv4_prefix
118
	option 'bmx6_tablePrefTuns'  '7000'
119
	option 'bmx6_tableTuns'      '70'
120
	option 'bmx6_throwRules'     '1'
121
122
        option 'babel_mesh_prefix48' 'fd03:0:0'
123
	option 'netserver' '1'
124
125
config 'qmp' 'tunnels'
126
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
127
        option 'search_ipv6_tunnel'  '::/0'
128
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
129
#       option 'offer_ipv6_tunnel'  '::/0'
130
131
132
config 'qmp' 'wireless'
133
        option 'driver'  'mac80211'
134
        option 'country' 'SP'
135 3 Pau Escrich
        option 'bssid'   '02:CA:FF:EE:BA:BE'
136
137
config 'qmp' 'interfaces'
138
#       option 'configure_switch' 'eth0'                    # (uncomment line if available, e.g. WGT634U)
139
        option 'lan_devices'      'eth0 wlan1 dummy0'       # will be used as is!
140
        option 'wan_devices'      'eth1'                    # will be used as is!
141
        option 'mesh_devices'     'wlan0 wlan2 eth0 eth1'   # will be extended by vlan tag!
142
143
config 'qmp' 'node'
144
	option 'primary_device' 'eth0'
145
	option 'community_id' 'qMp'
146
	option 'community_node_id' ''
147
	option 'key' '/tmp/qmp_key'
148
149
config 'qmp' 'update'
150
	option 'url' 'http://fw.qmp.cat/testing'
151
	option 'images' 'IMAGES'
152
	option 'devices' 'DEVICES'
153
	option 'filter' 'sysupgrade'
154
	option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'
155
156
config 'qmp' 'non_overlapping'
157
        option 'ignore'              '0'  # Each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on lan device
158
        option 'dhcp_offset'         '2'
159
        option 'qmp_leasetime'       '1h'
160
161
config 'qmp' 'networks'
162
        option 'dns'                 '141.1.1.1 85.126.4.170 202.83.95.227'
163
        option 'lan_address'         '172.30.22.1'
164
        option 'lan_netmask'         '255.255.255.0'
165
        #option 'publish_lan'	     '0'
166
	#option 'niit_prefix96'       '0:0:0:0:0:ffff'        # omit trailing 32 ipv4 bits !
167
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
168
        option 'mesh_vid_offset'     '10'
169
170
	option 'rescue_prefix24'     '169.254' # rescue network prefix, the 16 missing bits are taken from device MAC 
171
172
        option 'olsr6_mesh_prefix48' 'fd01:0:0'
173
        option 'olsr6_ripe_prefix48' '2011:0:0'
174
        option 'olsr6_ipv4_prefix24' '10.201'
175
#       option 'olsr6_ipv4_address'  '10.201.9.01'
176
#       option 'olsr6_ipv4_netmask'  '255.255.255.0'
177
#       option 'olsr6_6to4_netmask'  '120'
178
179
        option 'bmx6_mesh_prefix48'  'fd02:0:0'
180
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
181
        option 'bmx6_ipv4_prefix24'  '10.202'
182
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
183
                                                       # community_node_id and bmx6_ipv4_prefix
184
	option 'bmx6_tablePrefTuns'  '7000'
185
	option 'bmx6_tableTuns'      '70'
186
	option 'bmx6_throwRules'     '1'
187
188
        option 'babel_mesh_prefix48' 'fd03:0:0'
189
	option 'netserver' '1'
190
191
# Offer/Fetch networks in the Mesh
192
config 'qmp' 'tunnels'
193
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
194
        option 'search_ipv6_tunnel'  '::/0'
195
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
196
#       option 'offer_ipv6_tunnel'  '::/0'
197
198
199
# Main wireless configuration (common for all wifi devices)
200
config 'qmp' 'wireless'
201
        option 'driver'  'mac80211'
202
        option 'country' 'SP'
203
        option 'bssid'   '02:CA:FF:EE:BA:BE'
204
205
# First wifi device
206
config 'wireless'
207
	option 'mode' 'adhoc'
208
	option 'name' 'qMp.lab104'
209
	option 'txpower' '14'
210
	option 'channel' '140-'
211
	option 'mac' '90:a4:de:c0:bb:c3'
212
	option 'device' 'wlan0'
213
214
# Second wifi device
215
config 'wireless'
216
	option 'mode' 'ap'
217
	option 'name' 'qMp'
218
	option 'txpower' '17'
219
	option 'channel' '9+'
220
	option 'mac' '00:80:48:78:75:23'
221 2 Pau Escrich
	option 'device' 'wlan1'
222
223 1 Pau Escrich
</pre>