-
Notifications
You must be signed in to change notification settings - Fork 1
/
subnodes.config
executable file
·83 lines (61 loc) · 1.79 KB
/
subnodes.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
# Config file for subnodes configuration
################################
# Common settings
#
AP_COUNTRY=DE
AP_SSID=""
DO_SET_MESH=y
BOOTSTRAP_NODE=n
BRIDGE_IP=10.168.100.3
# IPFS Peer settings for access to private network
# Do not change below for our tutorial
#SWARM_KEY=
BOOTSTRAP_IP="90.187.37.21"
BOOTSTRAP_PEER_ID="12D3KooWMP4k1nbXHWkxMPk7XiBSAahDLozXRLZ6GKC12D859EBe"
################################
# Mesh settings
# Parameters used in subnodes_mesh startup script
MESH_SSID="submesh"
MESH_CHANNEL=3
CELL_ID=02:12:34:56:78:90
MTU=1532
# Set mode as "server" or "client"
GW_MODE="client"
#GW_SEL_CLASS="20"
# These are for gw servers
#GW_BANDWIDTH="10000/2000"
#GW_IP=192.168.100.1
# To-Do: Specify exact device you would like to use for mesh point
#MESH_PHY="phy2"
################################
# Create a bridge for mesh network and access point
# Start with 2, or 1 for a gateway bridge
#
BRIDGE_NETMASK=255.255.0.0
################################
# Hostapd settings
#
RADIO_DRIVER=nl80211
# Recommended channels: 2, 5, 9. Do not use channels 12 or 13 because they won't work with the onboard RPi3 radio
AP_CHAN=2
# Start with 2, or 1 for a gateway access point
AP_IP=10.80.100.2
AP_NETMASK=255.255.255.0
# To-Do: Specify exact device you would like to use for access point
#AP_PHY="phy1"
################################
# DNSMasq settings
# Keep in mind IP address overlap. To-do: use Avahi
#
AP_DHCP_START=10.80.100.101
AP_DHCP_END=10.80.100.254
DHCP_NETMASK=255.255.255.0
DHCP_LEASE=1h
# Configure below if we are joining a mesh network
BR_DHCP_START=10.168.100.101
BR_DHCP_END=10.168.100.254
# SET THE IP ADDRESS OF THE GATEWAY ROUTER FOR ROUTING BETWEEN NETWORKS
DHCP_ROUTER=10.168.100.1
# SET THE IP ADDRESS OF THE GATEWAY ROUTER WHICH WE WILL ALSO USE FOR DNS
DNS=10.168.100.1