[Voyage-linux] Virtual AP's
Andrew Niemantsverdriet
(spam-protected)
Tue Aug 1 05:46:09 HKT 2006
Can somebody show what a working madwifi VAP /etc/network/interfaces file
looks like.
I have included my test one below something is not working right on it and
my serial cable just broke so I can't troubleshoot very well until the
store opens again. Any suggestions? Do the VAP's have to run on the same
channel?
Here is what I have so far:
cat etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
up "route add -net 10.2.1.0 netmask 255.255.255.0 gw 10.2.1.1
metric 1"
down "route del -net 10.2.1.0 netmask 255.255.255.0 gw 10.2.1.1
metric 1"
up "route add -net 192.168.180.0 netmask 255.255.255.0 gw
192.168.180.1 metric 1"
down "route del -net 192.168.180.0 netmask 255.255.255.0 gw
192.168.180.1 metric 1"
auto ath0
iface ath0 inet static
address 10.2.1.1
netmask 255.255.255.0
broadcast 10.2.1.255
gateway 10.0.0.1
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
up iwconfig ath0 mode master
up iwconfig ath0 essid voyage_Test_AP1 channel 5
up iwconfig ath0 txpower auto
up iwconfig ath0 key 12345678901234567890123456
up iwconfig ath0 rate auto
auto ath1
iface ath1 inet static
address 192.168.180.1
netmask 255.255.255.0
broadcast 192.168.180.254
gateway 10.0.0.1
pre-up wlanconfig ath1 create wlandev wifi0 wlanmode ap
up iwconfig ath1 mode master
up iwconfig ath1 essid voyage.test.AP2 channel 11
up iwconfig ath1 txpower auto
up iwconfig ath1 enc off
up iwconfig ath1 rate auto
More information about the Voyage-linux
mailing list