Developing lightweight computation at the DSG edge

qmp.default-config 3.95 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
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
43
44
45
	
# -----------------------------
# Node services to be started
# -----------------------------
config 'qmp' 'services'
	option vpn 0
	option captive_portal 0
Pau Escrich's avatar
Pau Escrich committed
46
	option b6m 0
47
	option libremap 1
48
49
	option gwck 1
	option auto_upgrade 0
50
	option mesh_dns 1
51
	option bwtest 1
52

53
54
55
# -----------------------------
# Firmware upgrade system
# -----------------------------
56
config 'qmp' 'update'
57
	# Remote URL where the firmware images are placed.
58
	option url 'http://fw.qmp.cat/trunk'
59
60
61
62
63
64
65
66
67
68
69
	
	# 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.
70
	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'
71

72
73
74
# -----------------------------
# L3 roaming mode options
# -----------------------------
75
config 'qmp' 'roaming'
76
77
	# Enable/disable roaming mode.
	option ignore '0'
78
	
79
80
81
82
83
84
85
86
87
	# DHCP offset for the dhcp server.
	option dhcp_offset '2'
	
	# Leasetime for dhcp server.
	option qmp_leasetime '1h'

# -----------------------------
# Networking options
# -----------------------------
88
config 'qmp' 'networks'
89
	# DNS servers which will be configured.
Pau Escrich's avatar
Pau Escrich committed
90
	option dns '208.67.222.222 85.126.4.170 202.83.95.227'
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
	
	# 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'
	
108
109
	# 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'
110
	
111
	# IPv6 prefix (48bits) for internal mesh usage (ULA recommended).
112
113
	option bmx6_mesh_prefix48  'fd02:0:0'
	
114
	# IPv6 LAN prefix (48bits) (ULA recommended). It will be announced as a bmx6 tunnel/gateway in the Mesh.
115
	option lan_ula_prefix48 'fd00:1714:1714'
116
	option publish_lan '1'
117
	
118
119
120
121
122
	# 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).
123
	# option wan_metric '2048' 
124

125
126
127
# -----------------------------
# Wireless general configuration
# -----------------------------
128
config 'qmp' 'wireless'
129
	option driver 'mac80211'
Pau Escrich's avatar
Pau Escrich committed
130
	option country 'US'
131
	option bssid '02:CA:FF:EE:BA:BE'
Pau Escrich's avatar
Pau Escrich committed
132
	option mrate '6000'
133