#371290 - 09/10/2018 04:40
Mac experts: Prioritize ethernet over Wifi?
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
Any Mac experts know how to fix this one?
When my Mac is docked or connected to something that has an active gigabit ethernet connection (doesn't seem to matter which dock or dongle I use, I have a choice of three options in this regard), I would expect it to use that faster docked ethernet connection, rather than Wifi.
However I have found that it seems to still favor the Wifi all the time.
Example: Just now I started a backup to my networked Time Machine drive (which is a fileshare on my NAS). It said the backup would take three hours. I canceled that backup, turned off the Wifi on the Mac, and started the backup again, to the same location. No changes to anything except that I turned off Wifi. Now it says the backup will take less than 30 minutes. This behavior is very consistent and reproducible.
When I google search for the problem, everything says I should do this: - Open system preferences control panel. - Select "Network" - Select the "gear" icon flyout menu. - Select "set service order". - Move the ethernet connection to the top.
Yep, already done that. The ethernet options I've had plugged in before are at the top (and my current active one is the very top), and wifi is below those. It has been configured that way for ages. Doesn't seem to fix it. But that's as far as my Google searches seem to be able to take me.
Anyone else run into this issue?
|
Top
|
|
|
|
#371291 - 09/10/2018 08:28
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
carpal tunnel
Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
|
You're doing the right thing, that is how I have mine setup. It "just" works.
The only wrinkle I can think of is if you have different locations setup and you are changing the order for the wrong one, though that sounds unlikely.
_________________________
Remind me to change my signature to something more interesting someday
|
Top
|
|
|
|
#371297 - 09/10/2018 17:19
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: andy]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
Thanks for that suggestion. I don't believe I did anything on purpose to set up different locations, but I'll check. I'm assuming you're referring to this. The other thing that Google searches told me was that if I had multiple wifi networks connected to the same LAN, it might get confused in the routing and might prioritize the Wifi because it thinks it's a more direct route. I don't think that's what's happening with me either, or at least, it shouldn't be. The Wifi router that I'm using is also my house's DHCP server, and everything in the house plugs into the Wifi router's built-in ethernet switch. The cable modem is upstream from the Wifi router, and we don't use the Wifi that's built into the cable modem. There are other ethernet switches in various places in the house, but they're just dumb switches, not routers. Still, if the Mac can detect that there are some switches in the chain, and it's trying to be clever about it, it might indeed think that the Wifi is the shorter link... Between my Mac and the router, there are two gigabit-ethernet switches: One in my office/studio that the Mac is plugged into (along with all my other gear in the office), and one in the closet just before the Wifi router (the rest of the ethernet ports in the house connect to that switch in the closet too).
|
Top
|
|
|
|
#371298 - 09/10/2018 17:49
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
old hand
Registered: 29/05/2002
Posts: 798
Loc: near Toronto, Ontario, Canada
|
As a test, try running a really long (and known good) gigabit capable Ethernet cable direct from the Mac to the router port. Out the door, down the stairs, across the room, all the way.
See if the Mac then prioritizes the Ethernet over the WiFi.
|
Top
|
|
|
|
#371300 - 09/10/2018 21:11
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: K447]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
That's a good idea. Though I don't have to jump through the hoops quite that badly to test it, I can just do it at the wall jack and in the closet. Skip the two switches by plugging direct.
|
Top
|
|
|
|
#371302 - 10/10/2018 03:50
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
old hand
Registered: 29/05/2002
Posts: 798
Loc: near Toronto, Ontario, Canada
|
That's a good idea. Though I don't have to jump through the hoops quite that badly to test it, I can just do it at the wall jack and in the closet. Skip the two switches by plugging direct. Well, what about the ‘known good’ cable parameter? If the in-wall cabling has packet loss issues or some other problem, the Mac may be de-prioritizing Ethernet or perhaps even ignoring it. Besides, don’t you want to own a full length 100 meter certified Ethernet cable? CAT 5E minimum I might mention that a cable manufacturer can print whatever they want on the cable jacket. The printing doesn’t necessarily mean it meets the specs (or any specs). Lots of maybe, or maybe not, cables on the market. Same goes for the wall jacks. I also have seen more than a few where the cable termination at the wall jack was sub-standard, loose, corroded, or just plain flakey. Not to mention cables mis-wired at the jack, wrong pin color coding, etc.
|
Top
|
|
|
|
#371303 - 10/10/2018 05:47
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
carpal tunnel
Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
|
There might be stuff in Console saying why it picked WiFi, deciding that information will likely be challenging though.
_________________________
Remind me to change my signature to something more interesting someday
|
Top
|
|
|
|
#371304 - 11/10/2018 09:25
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
pooh-bah
Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
|
Usually network interfaces will have a metric or priority e.g. route print will show in Windows or just route in Linux will show you. Mac being BSD based might be "netstat -r"
When you have two devices on the same subnet it should use the highest priority interface (usually the lowest number) when a new connection is created. Why Wi-Fi is prioritised is an Apple decision if that's what they're doing.
Also the other issue may be simply it already has a connection open via the Wi-Fi interface that it doesn't want to disconnect so it keeps using that. That should be fixed by stopping/restarting the backup or you could even try rebooting.
I highly doubt it's detecting LAN "hops" through Layer 2 networking devices like switches and access points (dumb or managed).
_________________________
Christian #40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)
|
Top
|
|
|
|
#371310 - 11/10/2018 15:25
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: Shonky]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
A friend suggested these console commands:
networksetup -listnetworkserviceorder - Lists the network service order. Should match what the GUI tells me. - It does indeed match what the GUI tells me. - Also it shows me that the ethernet interface is "en10" and the wifi interface is "en0"
nettop - Lists active data connections including which interface they're on. - So that I can confirm/deny my theory that the problem is due to usage of the wifi interface.
That last one is proving helpful. I'm currently seeing a mixture of connections, some on en10 and some on en0. The process names are sometimes clear, other times, not so much. I'm having trouble figuring out which processes are the ones that are the Time Machine backup process. I want to confirm/deny which one is the time machine backup so that I can be sure the slow backup is truly due to using the wifi.
Still poking at it...
|
Top
|
|
|
|
#371311 - 11/10/2018 17:06
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
Ah, the reason I couldn't tell which process was the backup process is because (a) it's called "kernel task 0" which is kinda weird for a backup process, and also, it hadn't made its connection yet. When it's at the "preparing backup..." stage, it hasn't yet made a connnection, so there's nothing on the chart yet.
Once it makes a connection, the nettop command shows that it's using the ethernet connection:
kernel_task.0 tcp4 192.168.0.168:57779<->192.168.0.88:548 en10 Established
(.88 is my NAS so that's how I know)
Actually very few tasks seem to use the "en0" wlan interface, and they kind of come and go randomly. Mostly it's just a DNS responder "listen" process, and Dropbox (which I don't understand really).
Anyway, full nettop output attached, but this destroys my assumption that it's related to interface priority.
My behavior that was originally stated is still true: Wifi on, slow backup, Wifi off, fast backup. But now I have to suspect, and begin to troubleshoot, the network routing, network cabling, gig switches, or wifi router.
Attachments
Nettop Output.txt (10695 downloads)
|
Top
|
|
|
|
#371312 - 11/10/2018 19:52
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
carpal tunnel
Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
|
DropBox has some LAN functionality, it will look for other DropBox installs on other machines you are signed into. That is probably while it is broadcasting on all interfaces.
_________________________
Remind me to change my signature to something more interesting someday
|
Top
|
|
|
|
#371316 - 14/10/2018 04:55
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: tfabris]
|
pooh-bah
Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
|
Interface number being en0 or en10 should not be indicator of priority. It's a separate configuration.
_________________________
Christian #40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)
|
Top
|
|
|
|
#371321 - 15/10/2018 20:04
Re: Mac experts: Prioritize ethernet over Wifi?
[Re: Shonky]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
|
Interface number being en0 or en10 should not be indicator of priority. It's a separate configuration. Yep. Sorry for not making it clear in my post: I understand this, I was merely listing the interface ID's because the "nettop" command output doesn't show the friendly names, it only shows those IDs. Reading back on the post, I can see how the post makes it look like I might have thought that the ID number was somehow a priority level. Thanks for making sure. I haven't dug any farther into the problem since discovering, via the "nettop" command, that the backup process was definitely using the ethernet interface. I don't know why it's slower when wifi is enabled, but at least now I know that it's not an interface priority thing. Thanks!
|
Top
|
|
|
|
|
|