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