Config » Historial » Versió 9
Pau Escrich, 09-01-2013 17:43
1 | 1 | Pau Escrich | h1. Config |
---|---|---|---|
2 | |||
3 | 7 | Pau Escrich | h3. Network interfaces |
4 | |||
5 | 2 | Pau Escrich | <pre> |
6 | 1 | Pau Escrich | config 'qmp' 'interfaces' |
7 | # option 'configure_switch' 'eth0' # (uncomment line if available, e.g. WGT634U) |
||
8 | 4 | Pau Escrich | option 'lan_devices' 'eth0 wlan1 dummy0' # LAN (dhcp server) |
9 | option 'wan_devices' 'eth1' # WAN (dhcp client) |
||
10 | option 'mesh_devices' 'wlan0 wlan2 eth0 eth1' # Mesh devices, will be extended by VLAN tag! |
||
11 | option 'no_vlan_devices' '' # Network devices where we do not want to use VLAN tag (not recommended!) |
||
12 | 6 | Pau Escrich | </pre> |
13 | 1 | Pau Escrich | |
14 | 7 | Pau Escrich | h3. Node information |
15 | |||
16 | 6 | Pau Escrich | <pre> |
17 | 1 | Pau Escrich | config 'qmp' 'node' |
18 | 9 | Pau Escrich | option 'primary_device' 'eth0' |
19 | option 'community_id' 'qMp' |
||
20 | option 'community_node_id' '' |
||
21 | option 'key' '/tmp/qmp_key' |
||
22 | 1 | Pau Escrich | </pre> |
23 | 6 | Pau Escrich | |
24 | 7 | Pau Escrich | |
25 | h3. Upgrade firmware |
||
26 | |||
27 | 5 | Pau Escrich | <pre> |
28 | 1 | Pau Escrich | config 'qmp' 'update' |
29 | option 'url' 'http://fw.qmp.cat/testing' |
||
30 | option 'images' 'IMAGES' |
||
31 | option 'devices' 'DEVICES' |
||
32 | option 'filter' 'sysupgrade' |
||
33 | 6 | Pau Escrich | option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread' |
34 | 4 | Pau Escrich | </pre> |
35 | 1 | Pau Escrich | |
36 | 7 | Pau Escrich | h3. DHCP overlapping (Roaming) |
37 | |||
38 | This is for Roaming mode, each node assings a non-overlapping DHCP IPv4 ranges over a /16 network on LAN device |
||
39 | 5 | Pau Escrich | <pre> |
40 | 1 | Pau Escrich | config 'qmp' 'non_overlapping' |
41 | 4 | Pau Escrich | option 'ignore' '0' |
42 | 1 | Pau Escrich | option 'dhcp_offset' '2' |
43 | option 'qmp_leasetime' '1h' |
||
44 | </pre> |
||
45 | |||
46 | 7 | Pau Escrich | h3. Network (layer3) |
47 | |||
48 | 6 | Pau Escrich | <pre> |
49 | 1 | Pau Escrich | config 'qmp' 'networks' |
50 | option 'dns' '141.1.1.1 85.126.4.170 202.83.95.227' |
||
51 | option 'lan_address' '172.30.22.1' |
||
52 | option 'lan_netmask' '255.255.255.0' |
||
53 | 4 | Pau Escrich | |
54 | # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2 |
||
55 | option 'mesh_protocol_vids' 'olsr6:1 bmx6:2' |
||
56 | 3 | Pau Escrich | option 'mesh_vid_offset' '10' |
57 | |||
58 | 4 | Pau Escrich | # rescue network prefix, the 16 missing bits are taken from device MAC |
59 | 8 | Pau Escrich | option 'rescue_prefix24' '169.254' |
60 | 3 | Pau Escrich | |
61 | 4 | Pau Escrich | # OLSR (backup protocol) only supports IPv6 |
62 | 3 | Pau Escrich | option 'olsr6_mesh_prefix48' 'fd01:0:0' |
63 | option 'olsr6_ripe_prefix48' '2011:0:0' |
||
64 | |||
65 | # BMX6 (main protocol) runs IPv6 backbone and IPv4 tunneled |
||
66 | option 'bmx6_mesh_prefix48' 'fd02:0:0' |
||
67 | option 'bmx6_ripe_prefix48' '2012:0:0' # suffix is autoconfigured based on community_node_id |
||
68 | option 'bmx6_ipv4_prefix24' '10.202' |
||
69 | # option 'bmx6_ipv4_address' '10.202.9.01/24' # if commented out then option is autoconfigured based on |
||
70 | # community_node_id and bmx6_ipv4_prefix |
||
71 | 8 | Pau Escrich | option 'bmx6_tablePrefTuns' '7000' |
72 | option 'bmx6_tableTuns' '70' |
||
73 | option 'bmx6_throwRules' '1' |
||
74 | 3 | Pau Escrich | |
75 | option 'babel_mesh_prefix48' 'fd03:0:0' |
||
76 | 9 | Pau Escrich | option 'netserver' '1' |
77 | 1 | Pau Escrich | </pre> |
78 | |||
79 | 7 | Pau Escrich | h3. Tunnels (gateways) |
80 | |||
81 | Offer/Fetch networks in the Mesh |
||
82 | |||
83 | 3 | Pau Escrich | <pre> |
84 | config 'qmp' 'tunnels' |
||
85 | option 'search_ipv4_tunnel' '0.0.0.0/0' |
||
86 | option 'search_ipv6_tunnel' '::/0' |
||
87 | # option 'offer_ipv4_tunnel' '0.0.0.0/0' |
||
88 | 1 | Pau Escrich | # option 'offer_ipv6_tunnel' '::/0' |
89 | </pre> |
||
90 | |||
91 | 7 | Pau Escrich | h3. WiFi |
92 | |||
93 | Main wireless configuration (common for all wifi devices) |
||
94 | 3 | Pau Escrich | <pre> |
95 | config 'qmp' 'wireless' |
||
96 | option 'driver' 'mac80211' |
||
97 | option 'country' 'SP' |
||
98 | option 'bssid' '02:CA:FF:EE:BA:BE' |
||
99 | |||
100 | # First wifi device |
||
101 | config 'wireless' |
||
102 | 9 | Pau Escrich | option 'mode' 'adhoc' |
103 | option 'name' 'qMp.lab104' |
||
104 | option 'txpower' '14' |
||
105 | option 'channel' '140-' |
||
106 | option 'mac' '90:a4:de:c0:bb:c3' |
||
107 | option 'device' 'wlan0' |
||
108 | 3 | Pau Escrich | |
109 | # Second wifi device |
||
110 | config 'wireless' |
||
111 | 9 | Pau Escrich | option 'mode' 'ap' |
112 | option 'name' 'qMp' |
||
113 | option 'txpower' '17' |
||
114 | option 'channel' '9+' |
||
115 | option 'mac' '00:80:48:78:75:23' |
||
116 | option 'device' 'wlan1' |
||
117 | 1 | Pau Escrich | </pre> |