Developing lightweight computation at the DSG edge

qmp.default-config 4.22 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
	# 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.
19
	option no_vlan_devices ''
20
21
22
	
	# 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
	# The MAC address of the primary device will be used for calculate ID.
	option primary_device 'eth0'
	
	# The node name (human readable).
32
	option device_name 'qMp'
33
34
	
	# The node id (2 hex digits). Leave blank to use crc16 from MAC address.
35
	option device_id ''
36
37
38

	# Append device_id to device_name in the device hostname
	option append_id '1'
39
40
41
	
	# Temporay key file for session (autogenerated in each boot).
	option key '/tmp/qmp_key'
42
43
44
45
46
47
48
49
50

	# Map information
	option elevation '0'
	option latitude '0.0'
	option longitude '0.0'

	# Contact information (e-mail)
	option contact 'admin@qmp.cat'

51
52
53
54
55
56
# -----------------------------
# Node services to be started
# -----------------------------
config 'qmp' 'services'
	option vpn 0
	option captive_portal 0
Pau Escrich's avatar
Pau Escrich committed
57
	option b6m 0
58
	option libremap 1
59
60
	option gwck 1
	option auto_upgrade 0
61
	option mesh_dns 1
62
	option bwtest 1
63

64
65
66
# -----------------------------
# Firmware upgrade system
# -----------------------------
67
config 'qmp' 'update'
68
	# Remote URL where the firmware images are placed.
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
69
	option url 'http://fw.qmp.cat/stable'
70
71
72
73
74
75
76
77
78
79
80
	
	# 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.
81
	option preserve '/etc/config/qmp /etc/shadow /etc/passwd /etc/rc.local /etc/firewall.user /etc/dropbear /etc/config/b6m-spread /etc/qmp/.birth /etc/config/gateways /etc/config/mini_snmpd'
82

83
84
85
# -----------------------------
# L3 roaming mode options
# -----------------------------
86
config 'qmp' 'roaming'
87
88
	# Enable/disable roaming mode.
	option ignore '0'
89
	
90
91
92
93
94
95
96
97
98
	# DHCP offset for the dhcp server.
	option dhcp_offset '2'
	
	# Leasetime for dhcp server.
	option qmp_leasetime '1h'

# -----------------------------
# Networking options
# -----------------------------
99
config 'qmp' 'networks'
100
	# DNS servers which will be configured.
101
	option dns '208.67.222.222 77.109.148.136 109.69.8.34'
102
103
104
105
106
	
	# 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'
107
	option disable_mesh_dhcp '1'
108
109
110
111
112
113
114
115
116
117
118
119
	
	# 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'
	
120
121
	# Routing protocols and VLAN. Use <proto-name>[:VLAN-ID]. If VLAN-ID not specified, VLAN tags are not used.
	option mesh_protocol_vids 'bmx6:12'
122
	
123
	# IPv6 prefix (48bits) for internal mesh usage (ULA recommended).
124
125
	option bmx6_mesh_prefix48  'fd02:0:0'
	
126
	# IPv6 LAN prefix (48bits) (ULA recommended). It will be announced as a bmx6 tunnel/gateway in the Mesh.
127
	option lan_ula_prefix48 'fd00:1714:1714'
128
	option publish_lan '1'
129
	
130
131
132
133
134
	# IPv6 prefix for public internet (48 bits). 
	# Suffix is autoconfigured based on primary device MAC.
	option bmx6_ripe_prefix48  '2012:0:0'
	
	# Metric for WAN interfaces (dhcp client).
135
	# option wan_metric '2048' 
136

137
138
139
# -----------------------------
# Wireless general configuration
# -----------------------------
140
config 'qmp' 'wireless'
141
	option driver 'mac80211'
Pau Escrich's avatar
Pau Escrich committed
142
	option country 'US'
143
	option bssid '02:CA:FF:EE:BA:BE'
Pau Escrich's avatar
Pau Escrich committed
144
	option mrate '6000'