Projecte

General

Perfil

Config » Historial » Versió 2

Pau Escrich, 09-01-2013 17:28

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
	#option 'niit_prefix96'       '0:0:0:0:0:ffff'        # omit trailing 32 ipv4 bits !
34
        option 'mesh_protocol_vids'  'olsr6:1 bmx6:2'   # means olsr6 use vlantag 10+1, bmx6 use vlantag 10+2
35
        option 'mesh_vid_offset'     '10'
36
37
	option 'rescue_prefix24'     '169.254' # rescue network prefix, the 16 missing bits are taken from device MAC 
38
39
        option 'olsr6_mesh_prefix48' 'fd01:0:0'
40
        option 'olsr6_ripe_prefix48' '2011:0:0'
41
        option 'olsr6_ipv4_prefix24' '10.201'
42
#       option 'olsr6_ipv4_address'  '10.201.9.01'
43
#       option 'olsr6_ipv4_netmask'  '255.255.255.0'
44
#       option 'olsr6_6to4_netmask'  '120'
45
46
        option 'bmx6_mesh_prefix48'  'fd02:0:0'
47
        option 'bmx6_ripe_prefix48'  '2012:0:0'        # suffix is autoconfigured based on community_node_id
48
        option 'bmx6_ipv4_prefix24'  '10.202'
49
#       option 'bmx6_ipv4_address'   '10.202.9.01/24'  # if commented out then option is autoconfigured based on
50
                                                       # community_node_id and bmx6_ipv4_prefix
51
	option 'bmx6_tablePrefTuns'  '7000'
52
	option 'bmx6_tableTuns'      '70'
53
	option 'bmx6_throwRules'     '1'
54
55
        option 'babel_mesh_prefix48' 'fd03:0:0'
56
	option 'netserver' '1'
57
58
config 'qmp' 'tunnels'
59
        option 'search_ipv4_tunnel'  '0.0.0.0/0'
60
        option 'search_ipv6_tunnel'  '::/0'
61
#       option 'offer_ipv4_tunnel'  '0.0.0.0/0'
62
#       option 'offer_ipv6_tunnel'  '::/0'
63
64
65
config 'qmp' 'wireless'
66
        option 'driver'  'mac80211'
67
        option 'country' 'SP'
68
        option 'bssid'   '02:CA:FF:EE:BA:BE'
69 2 Pau Escrich
70
</pre>