Apple Mac Network Preferences
Author
Discussion

blueST

Original Poster:

4,908 posts

247 months

Monday 3rd May 2010
quotequote all
I'm sure this is really straight forward but I can't see it.

My broadband modem is connected to my mac via an ethernet cable and I can connect wirelessly too. In network preferences I have both wireless connection and the ethernet connection configured. My question is, how do I know (and control) if the Mac is connecting wirelessly or via ethernet to the modem?


cyberface

12,214 posts

288 months

Monday 3rd May 2010
quotequote all
If you only need one of the interfaces, select it in the left hand panel and left-click (or use the 'gear' button at the bottom) and select 'Make Service Inactive' - this will turn off one of them.

If you need to know which one is being used... well IIRC unix will use either depending on the route. You can go into the Terminal, type 'ifconfig' and it'll tell you the names of the interfaces and which ones have IP addresses - if both your interfaces have given you a valid IP address then your default route will be the one it uses.

It's just BSD unix when it comes to networking so plenty of network gurus here could advise on how *exactly* the system chooses to route each packet, when you've got more than one valid interface that routes to the internet.

One way to check for a particular web address would be to use the terminal and the 'route' command. So if you want to know how your Mac gets to Pistonheads, type 'route get www.pistonheads.com' and it'll give you a list of which gateway it used - which will correspond to the IP address of one of your interfaces. It'll actually also explicitly say which interface it used too, so you'll know whether it's using ethernet or whatever.

Blue Meanie

73,668 posts

286 months

Monday 3rd May 2010
quotequote all
You can set the service order in the gear tools menu underneath the network preferences pane thingy. Just move whichever one you want to have priority to the top. I have a spare MacBook that connects to the Internet via wifi on a different connection, but is connected to my network via Ethernet, so I can access it.

mattley

3,039 posts

253 months

Monday 3rd May 2010
quotequote all
I just tried this and checked the network usage by interface in iStat and it's using the cabled connection which makes sense.

Dunno how to control it without disabling one of the interfaces.

Blue Meanie

73,668 posts

286 months

Monday 3rd May 2010
quotequote all
mattley said:
I just tried this and checked the network usage by interface in iStat and it's using the cabled connection which makes sense.

Dunno how to control it without disabling one of the interfaces.
Go into the menu I said, and add the one you want it to use, and put it to the top.



Edited by Blue Meanie on Monday 3rd May 20:26

blueST

Original Poster:

4,908 posts

247 months

Monday 3rd May 2010
quotequote all
I played about with the order as per Blue Meanie's instructions. With ethernet at the top the 'route get' instruction told me it was using the en0 interface, with airport at the top it said en1.

Blue Meanie

73,668 posts

286 months

Monday 3rd May 2010
quotequote all
Ethernet should be en0, and airport should be en1, as far as I am aware.

mattley

3,039 posts

253 months

Monday 3rd May 2010
quotequote all
Blue Meanie said:
mattley said:
I just tried this and checked the network usage by interface in iStat and it's using the cabled connection which makes sense.

Dunno how to control it without disabling one of the interfaces.
Go into the menu I said, and add the one you want it to use, and put it to the top.
Well I know that now smile

Tks

blueST

Original Poster:

4,908 posts

247 months

Monday 3rd May 2010
quotequote all
Blue Meanie said:
Ethernet should be en0, and airport should be en1, as far as I am aware.
That corresponds. Problem solved for me, thanks.