Projecte

General

Perfil

Config » Historial » Versió 6

Pau Escrich, 09-01-2013 17:39

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