DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd June 2021
stanl stanl is offline
Real Name: Stan
Shell Scout
 
Join Date: Jun 2019
Location: New York
Posts: 93
Default Not a problem - Just curious re WiFi

My ISP is Verizon FiOS. My downstairs neighbor's ISP is Spectrum. My /etc/hostname.iwn0
consists of 2 lines - first my connection, second her connection (she allowed me to connect to her network for a short time several months ago when I was having problems). My router sits on my desk less than 18 inches from my laptop. Her router is downstairs on top of a dresser in a back room.
Question - why, when given a choice does wifi always connect to her network instead of mine? Both are 5G, my dBm= -27 her dBm= -73.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 23rd June 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,404
Default

Are you using join?
Reply With Quote
  #3   (View Single Post)  
Old 23rd June 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,404
Default

Oh ... and 5G is a term for cellular technology, not WiFi.
Reply With Quote
  #4   (View Single Post)  
Old 23rd June 2021
stanl stanl is offline
Real Name: Stan
Shell Scout
 
Join Date: Jun 2019
Location: New York
Posts: 93
Default

Code:
/etc/hostname.iwn0:
join FiOS-5G wpakey fios-password
join Spectrum-5G wpakey spectrum-password
dhcp
up powersave
Reply With Quote
  #5   (View Single Post)  
Old 24th June 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,404
Default

The ifconfig(8) join list does not have a way to indicate priority if two or more networks are available to be joined at the same time. You might reverse the order of your two networks in the list to see if that switches which network will be used. If that works, that would solve your problem.

If switching the order doesn't work, then you might consider using other parameters such as chan to force the favored network selection. The ifconfig(8) man page states:
Quote:
Because multiple access points may exist in a given network, the mode (11a/11b/11g/11n), chan, and bssid parameters cannot be stored with join. However, they may be used separately to force the selection of a particular access point when the automatic access point selection turns out to be suboptimal.
Reply With Quote
  #6   (View Single Post)  
Old 24th June 2021
stanl stanl is offline
Real Name: Stan
Shell Scout
 
Join Date: Jun 2019
Location: New York
Posts: 93
Default

Reversing the order as you suggested works. Logically, it makes no sense. I may know next to nothing about networking but if I have 2 available networks, logic would dictate I join the one closest, no? The order in which they are listed should make no difference and if it does make a difference (as it apparently does) then one would expect the network listed first to be the one joined, not the one listed second.

Oh well... As always thanks for taking the time to assist.
Reply With Quote
  #7   (View Single Post)  
Old 24th June 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,404
Default

The common use case is a traveling laptop. The different networks (examples: home, workplace, coffee shop, airport, ...) are usually separated by distance. Some of these networks (workplace, airport) may have multiple access points with the same network name, so that your mobile device is within range of an access point throughout the time you move within a large facility.

Your use-case is different from the typical. You have two separate networks, a primary and a backup, which are colocated.

I suggested reversing the order to see if the join list entries are simply tested in the order they are link-listed by ifconfig(8), looking for the first match. They are, using LIFO (last in first out) ordering.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem connecting to public wifi stanl OpenBSD General 8 19th June 2021 08:49 PM
Curious about /etc/installurl hitest OpenBSD Installation and Upgrading 6 22nd October 2018 01:39 PM
curious ? frcc OpenBSD General 6 5th November 2014 04:05 AM
wifi performance (rum) mickywicky OpenBSD General 11 25th October 2013 03:08 PM
DesktopBSD & usb wifi radtek FreeBSD General 1 10th September 2008 09:13 PM


All times are GMT. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick