Developing lightweight computation at the DSG edge

qmp.default-config 3.54 KB
Newer Older
1
2
3
4
5
6
7
#
# qMp main config file. Visit http://qmp.cat for more info.
#

# -----------------------------
# Network interfaces definicion
# -----------------------------
8
config 'qmp' 'interfaces'
9
10
11
12
13
14
15
16
17
18
19
20
21
22
	# Devices for LAN (bridged in br-lan and dhcp-server will be enabled).
	option lan_devices ''
	
	# Devices for WAN (dhcp-client will be enabled).
	option wan_devices ''	
	
	# Devices used for Meshing, by default they will be extended with VLAN tag.
	option mesh_devices ''
	
	# Devices that will be excluded of the VLAN tagging.
	option no_vlan_devices' ''
	
	# Devices that will be ignored (to manage them manually).
	option ignore_devices ''
23

24
25
26
# -----------------------------
# Node specifics configuration
# -----------------------------
27
config 'qmp' 'node'
28
29
30
31
32
33
34
35
36
37
38
	# The MAC address of the primary device will be used for calculate ID.
	option primary_device 'eth0'
	
	# The node name (human readable).
	option community_id 'qMp'
	
	# The node id (2 hex digits). Leave blank to use crc16 from MAC address.
	option community_node_id ''
	
	# Temporay key file for session (autogenerated in each boot).
	option key '/tmp/qmp_key'
39

40
41
42
# -----------------------------
# Firmware upgrade system
# -----------------------------
43
config 'qmp' 'update'
44
45
46
47
48
49
50
51
52
53
54
55
56
57
	# Remote URL where the firmware images are placed.
	option url 'http://fw.qmp.cat/testing'
	
	# Special remote file which contains a list of firmware:md5hash.
	option images 'IMAGES'
	
	# Special remote file which contains a list of device:hash.
	option devices 'DEVICES'
	
	# Filter to look for specific firmware images.
	option filter 'sysupgrade'
	
	# List of files which are gonna be saved between upgrades.
	option preserve '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear /etc/config/b6m-spread /etc/qmp/.birth'
58

59
60
61
# -----------------------------
# L3 roaming mode options
# -----------------------------
62
config 'qmp' 'roaming'
63
64
	# Enable/disable roaming mode.
	option ignore '0'
65
	
66
67
68
69
70
71
72
73
74
	# DHCP offset for the dhcp server.
	option dhcp_offset '2'
	
	# Leasetime for dhcp server.
	option qmp_leasetime '1h'

# -----------------------------
# Networking options
# -----------------------------
75
config 'qmp' 'networks'
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
	# DNS servers which will be configured.
	option dns '141.1.1.1 85.126.4.170 202.83.95.227'
	
	# LAN address and netmask (will be assigned to br-lan).
	option lan_address '172.30.22.1'
	option lan_netmask '255.255.0.0'
	option disable_lan_dhcp '0'
	
	# Rescue IPv4 network prefix (/16 bits). 
	# Missing 16 bits are taken from primary device MAC.
	option rescue_prefix24 '169.254' 
	
	# IPv4 main IP address for the mesh cloud (if blank it will be autogenerated).
	# In community mode it may be the same assigned to LAN (network prefix can be specified).
	option bmx6_ipv4_address '' 
	
	# IPv4 autogeneration main prefix (used if bmx6_ipv4_address not specified).
	option bmx6_ipv4_prefix24 '10.202.0'
	
	# Protocols and VLAN offsets.
	option mesh_vid_offset '10'
	option mesh_protocol_vids 'olsr6:1 bmx6:2' 
	
	# IPv6 prefix for internal mesh usage (ULA).
	option bmx6_mesh_prefix48  'fd02:0:0'
	option olsr6_mesh_prefix48 'fd01:0:0'
	
	# IPv6 prefix for public internet (48 bits). 
	# Suffix is autoconfigured based on primary device MAC.
	option olsr6_ripe_prefix48 '2011:0:0'
	option bmx6_ripe_prefix48  '2012:0:0'
	
	# Metric for WAN interfaces (dhcp client).
	option wan_metric '2048' 
	
	# Enable bandwidth tests.
	option netserver '1'
113

114
115
116
# -----------------------------
# Wireless general configuration
# -----------------------------
117
config 'qmp' 'wireless'
118
119
120
	option driver 'mac80211'
	option country 'SP'
	option bssid '02:CA:FF:EE:BA:BE'