aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netbase/netbase/mtx-2/interfaces
blob: ae50a5cec3a891da493b94bf0b373c0ee025eb3e (plain)
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
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# the loopback interface
auto lo
iface lo inet loopback

# ethernet
auto eth0
iface eth0 inet dhcp
	alias conf 192.168.0.250

# auto is not needed for the wlan interfaces
# - hotplug will ifup the interfaces automatically

# first wlan interface for clients
iface wlan0 inet static
	address 10.0.0.1
	netmask 255.0.0.0
	wireless_mode master
	wireless_essid cube-ap
	wireless_channel 1

iface ath0 inet static
	address 10.0.0.1
	netmask 255.0.0.0
	wireless_standard g
	wireless_mode master
	wireless_essid cube-ap
	wireless_channel 1

# second wlan interface for mesh
iface wlan1 inet static
	address 172.16.0.1
	netmask 255.240.0.0
	broadcast 172.31.255.255
	wireless_mode ad-hoc
	wireless_essid cube-mesh
	wireless_channel 11
	wireless_rts 250

iface ath1 inet static
	address 172.16.0.1
	netmask 255.240.0.0
	broadcast 172.31.255.255
	wireless_mode ad-hoc
	wireless_essid cube-mesh
	wireless_channel 11
	wireless_rts 250