Developing lightweight computation at the DSG edge

qmp.default-config 4.31 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
42
	# Prepend mesh_name to device_name in the device hostname,
	option prepend_cnm '1'
	
43
44
	# Temporay key file for session (autogenerated in each boot).
	option key '/tmp/qmp_key'
45
46
47
48
49
50
51
52
53

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

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

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

67
68
69
# -----------------------------
# Firmware upgrade system
# -----------------------------
70
config 'qmp' 'update'
71
	# Remote URL where the firmware images are placed.
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
72
	option url 'http://fw.qmp.cat/stable'
73
74
75
76
77
78
79
80
81
82
83
	
	# 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.
84
	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'
85

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

# -----------------------------
# Networking options
# -----------------------------
102
config 'qmp' 'networks'
103
	# DNS servers which will be configured.
104
	option dns '208.67.222.222 77.109.148.136 109.69.8.34'
105
106
107
108
109
	
	# 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'
110
	option disable_mesh_dhcp '1'
111
112
113
114
115
116
117
118
119
120
121
122
	
	# 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'
	
123
124
	# 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'
125
	
126
	# IPv6 prefix (48bits) for internal mesh usage (ULA recommended).
127
128
	option bmx6_mesh_prefix48  'fd02:0:0'
	
129
	# IPv6 LAN prefix (48bits) (ULA recommended). It will be announced as a bmx6 tunnel/gateway in the Mesh.
130
	option lan_ula_prefix48 'fd00:1714:1714'
131
	option publish_lan '1'
132
	
133
134
135
136
137
	# 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).
138
	# option wan_metric '2048' 
139

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