aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dietze <martin@the-little-red-haired-girl.org>2009-05-23 13:09:56 +0200
committerMartin Dietze <mdietze@gmail.com>2013-03-02 17:25:20 +0100
commit617a7713b8e12ca11208af2a3fec1bfb34e83d0d (patch)
treea61e1233cf6c0bf0dcd7eb4048083bf0c5762a95
parentdf4ad317a496582341f031879da52545c71c1743 (diff)
downloadopenembedded-617a7713b8e12ca11208af2a3fec1bfb34e83d0d.zip
openembedded-617a7713b8e12ca11208af2a3fec1bfb34e83d0d.tar.gz
openembedded-617a7713b8e12ca11208af2a3fec1bfb34e83d0d.tar.bz2
netbase: updated etc/network/interfaces files for mtx-[12] * since hostap and madwifi drivers are installed, the system will pick the config for whatever wlan card is found
-rw-r--r--recipes/netbase/netbase/mtx-1/interfaces33
-rw-r--r--recipes/netbase/netbase/mtx-2/interfaces33
2 files changed, 52 insertions, 14 deletions
diff --git a/recipes/netbase/netbase/mtx-1/interfaces b/recipes/netbase/netbase/mtx-1/interfaces
index a7c6da5..ae50a5c 100644
--- a/recipes/netbase/netbase/mtx-1/interfaces
+++ b/recipes/netbase/netbase/mtx-1/interfaces
@@ -1,24 +1,34 @@
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
-# The loopback interface
+# the loopback interface
auto lo
iface lo inet loopback
-# Ethernet
+# ethernet
auto eth0
iface eth0 inet dhcp
+ alias conf 192.168.0.250
-# wlan interface 1 for clients
-auto wlan0
+# 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
-
-# wlan interface 2 for mesh
-auto wlan1
+
+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
@@ -27,3 +37,12 @@ iface wlan1 inet static
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
diff --git a/recipes/netbase/netbase/mtx-2/interfaces b/recipes/netbase/netbase/mtx-2/interfaces
index a7c6da5..ae50a5c 100644
--- a/recipes/netbase/netbase/mtx-2/interfaces
+++ b/recipes/netbase/netbase/mtx-2/interfaces
@@ -1,24 +1,34 @@
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
-# The loopback interface
+# the loopback interface
auto lo
iface lo inet loopback
-# Ethernet
+# ethernet
auto eth0
iface eth0 inet dhcp
+ alias conf 192.168.0.250
-# wlan interface 1 for clients
-auto wlan0
+# 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
-
-# wlan interface 2 for mesh
-auto wlan1
+
+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
@@ -27,3 +37,12 @@ iface wlan1 inet static
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