[Voyage-linux] Virtual AP's
Beat Meier
(spam-protected)
Tue Aug 1 19:41:00 HKT 2006
Andrew Niemantsverdriet wrote:
>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?
>
>
>
Yes VAP have the same underlying hw. You can set the channel (there is
no error at least in my version)
but it's the same channel. You should get a new madwifi driver (at
least first release 0.9.1 ) which
fixes some issue. My version reboots endless if you try to use AP and
sta mode together.
Be aware that you must create first a ap and than the sta. You must use
the sta with the nobecans option
set. If you use 2 ap like your config of course not.
About the auto startup of athX. I don't recommend it (see email before
about dns problems...)
BTW: You don't use hostap, right? If you do your default gw will be deleted.
I don't know why but the default gw is always deleted from hostapd.
hostapd seems to shutdown
first the interface of something similar so all routes (default only?)
are deleted. Not much
investigated because lake of time
Greetings
Beat
>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
>
>
>
>_______________________________________________
>Voyage-linux mailing list
>Voyage-linux at list.voyage.hk
>http://list.voyage.hk/mailman/listinfo/voyage-linux
>
>
>
More information about the Voyage-linux
mailing list