Projecte

General

Perfil

Config » Historial » Versió 5

Pau Escrich, 09-01-2013 17:38

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 5 Pau Escrich
# Update firmware server
18 1 Pau Escrich
config 'qmp' 'update'
19
	option 'url' 'http://fw.qmp.cat/testing'
20
	option 'images' 'IMAGES'
21
	option 'devices' 'DEVICES'
22
	option 'filter' 'sysupgrade'
23
	option 'preserve' '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear/* /etc/config/b6m-spread'
24 4 Pau Escrich
25 5 Pau Escrich
# This is for Roaming mode, 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
        # BMX6 (main protocol) runs IPv6 backbone and IPv4 tunneled
48
        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
# Offer/Fetch networks in the Mesh
61
config 'qmp' 'tunnels'
62
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
63
        option 'search_ipv6_tunnel'  '::/0'
64
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
65
#       option 'offer_ipv6_tunnel'  '::/0'
66
67
68
# Main wireless configuration (common for all wifi devices)
69
config 'qmp' 'wireless'
70
        option 'driver'  'mac80211'
71
        option 'country' 'SP'
72
        option 'bssid'   '02:CA:FF:EE:BA:BE'
73
74
# First wifi device
75
config 'wireless'
76
	option 'mode' 'adhoc'
77
	option 'name' 'qMp.lab104'
78
	option 'txpower' '14'
79
	option 'channel' '140-'
80
	option 'mac' '90:a4:de:c0:bb:c3'
81
	option 'device' 'wlan0'
82
83
# Second wifi device
84
config 'wireless'
85
	option 'mode' 'ap'
86
	option 'name' 'qMp'
87
	option 'txpower' '17'
88
	option 'channel' '9+'
89
	option 'mac' '00:80:48:78:75:23'
90 2 Pau Escrich
	option 'device' 'wlan1'
91
92 1 Pau Escrich
</pre>