Re: Howto connect to several wireless network ?
Hi, On Thu, Aug 28, 2008 at 5:35 PM, Nick Guenther [EMAIL PROTECTED] wrote: something like this script: #!/bin/sh #net.sh #change name as desired IF=ath0 ln -sf /etc/wifi/$1 /etc/hostname.${IF} sudo sh /etc/netstart and call it as $net home I have a similar approach, but its not great. Perhaps some form of daemon would be good to have to perform this task on the user's behalf. Solaris has a similar thing called nwamd. I still have problems switching between wireless networks and switch from wireless to wired etc with iwi. This area confuses me a lot and I have now started just rebooting if I need to switch from wifi to cable. Sometimes switch from 1 wifi net to another can be done if you take the interface down, followed by a scan, then try connecting. Sometimes i just get 'link down...'. -- Best Regards Edd http://students.dec.bournemouth.ac.uk/ebarrett
Re: Howto connect to several wireless network ?
On Thu, 28 Aug 2008, Francisco Valladolid Hdez. wrote: From: Francisco Valladolid Hdez. [EMAIL PROTECTED] To: misc@openbsd.org Date: Thu, 28 Aug 2008 07:20:48 -0700 (PDT) Subject: Howto connect to several wireless network ? frequently i have the necessity to connect to several networks (my home, office and another public network ) How can perform it task ? NetBSD has a ifwatchd daemon which can help in this situations detected the up/down and monitor dynamic interfaces. Any help on it, can be really appreciated. See: http://undeadly.org/cgi?action=articlesid=20071224164233 for an OpenBSD journal article on a similar subject. There was also some discussion on this topic last year on this list. One reader posted details of the script he uses to probe for wireless networks. It'll be in the various mail list archives. For example: http://www.mail-archive.com/misc@openbsd.org/msg52116.html Usual disclaimer applies: I've not used either of the above, but they might be useful and/or a useful starting point for your own ideas. -- Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK [EMAIL PROTECTED] Phone: +44 1225 386101
Re: Howto connect to several wireless network ?
On 11:13, Fri 29 Aug 08, Edd Barrett wrote: I still have problems switching between wireless networks and switch from wireless to wired etc with iwi. This area confuses me a lot and I have now started just rebooting if I need to switch from wifi to cable. You can use trunk(4) for that Sometimes switch from 1 wifi net to another can be done if you take the interface down, followed by a scan, then try connecting. Sometimes i just get 'link down...'. -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer aficionados are both called users?
Re: Howto connect to several wireless network ?
--- johan beisser [EMAIL PROTECTED] wrote: On Aug 28, 2008, at 12:48 PM, Vadim Zhukov wrote: ifstated(8) + ifconfig(8) (see -M option of ifconfig)? Interestingly, I had a script that would use ifconfig -M to figure out which AP it should use, sorted by rank (first match) and avoiding using generic or brand names. No match, and it would go to the strongest signal (default wifi behavior). I kind of wonder if that script is still around now. Cool the -M switch is very fine to do a complete script for doing it, aditionally using the form found in the Undeadly post. Regards. --- Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come! - 2 Corinthians 5:17 (NIV) --- Francisco Valladolid Hdez. http://blog.bsdguy.net - http://flickr.com/photos/sigueme/
Howto connect to several wireless network ?
Hi folks frequently i have the necessity to connect to several networks (my home, office and another public network ) How can perform it task ? NetBSD has a ifwatchd daemon which can help in this situations detected the up/down and monitor dynamic interfaces. Any help on it, can be really appreciated. Best regards ficovh
Re: Howto connect to several wireless network ?
On Thu, Aug 28, 2008 at 10:20 AM, Francisco Valladolid Hdez. [EMAIL PROTECTED] wrote: Hi folks frequently i have the necessity to connect to several networks (my home, office and another public network ) How can perform it task ? NetBSD has a ifwatchd daemon which can help in this situations detected the up/down and monitor dynamic interfaces. Any help on it, can be really appreciated. Best regards ficovh As far as I know OpenBSD has no standard way to deal with this, but what I do is make an /etc/wifi directory, in which I place a bunch of scripts in hostname.if(5) format (call them e.g. /etc/wifi/home, /etc/wifi/office) and then when I need to switch networks I use something like this script: #!/bin/sh #net.sh #change name as desired IF=ath0 ln -sf /etc/wifi/$1 /etc/hostname.${IF} sudo sh /etc/netstart and call it as $net home -Nick
Re: Howto connect to several wireless network ?
28 August 2008 c. 18:20:48 Francisco Valladolid Hdez. wrote: Hi folks frequently i have the necessity to connect to several networks (my home, office and another public network ) How can perform it task ? NetBSD has a ifwatchd daemon which can help in this situations detected the up/down and monitor dynamic interfaces. Any help on it, can be really appreciated. Best regards ficovh ifstated(8) + ifconfig(8) (see -M option of ifconfig)? -- Best wishes, Vadim Zhukov
Re: Howto connect to several wireless network ?
On Aug 28, 2008, at 12:48 PM, Vadim Zhukov wrote: ifstated(8) + ifconfig(8) (see -M option of ifconfig)? Interestingly, I had a script that would use ifconfig -M to figure out which AP it should use, sorted by rank (first match) and avoiding using generic or brand names. No match, and it would go to the strongest signal (default wifi behavior). I kind of wonder if that script is still around now.
Re: Howto connect to several wireless network ?
On Thu, Aug 28, 2008 at 4:05 PM, johan beisser [EMAIL PROTECTED] wrote: On Aug 28, 2008, at 12:48 PM, Vadim Zhukov wrote: ifstated(8) + ifconfig(8) (see -M option of ifconfig)? Interestingly, I had a script that would use ifconfig -M to figure out which AP it should use, sorted by rank (first match) and avoiding using generic or brand names. No match, and it would go to the strongest signal (default wifi behavior). I kind of wonder if that script is still around now. The trouble with that is that these days you rarely want to just connect to the first open wifi you see (and most wifi isn't open anyway). -Nick
Re: Howto connect to several wireless network ?
On Aug 28, 2008, at 4:06 PM, Nick Guenther wrote: The trouble with that is that these days you rarely want to just connect to the first open wifi you see (and most wifi isn't open anyway). Well, admittedly, it'd have to be rewritten and revised anyway. Ifstated(8) didn't exist the last time I ran OpenBSD exclusively on a laptop, and around the same time most wifi networks were pretty open and non-hostile.