Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like my WiFi to automatically disconnect when I plug an Ethernet cable into my Mac. How would I go about this?

share|improve this question
    
Could you put some more effort into describing "Cable" and how you have things set up? Ethernet, Cable Modem, some other cable? OS X handles multiple network interfaces without any intervention so it's not clear what you are even trying to accomplish. –  bmike Sep 19 '12 at 15:22
    
Cable ethernet, i mean! –  stighy Sep 19 '12 at 15:34
    
Do you want to have the entire WiFi system turn off when you connect the Ethernet cable? Also: I edited your question. Is it still correct? –  CajunLuke Sep 19 '12 at 17:34
    
The question makes a lot of sense to me: how to turn off the wifi radio when going on to ethernet. There are a lot of busy office wifi environments where it'd be beneficial. –  Dogweather Oct 7 '13 at 18:00

2 Answers 2

If you have somehow modified the default service ordering, you can set it again in the network tab using the gear.

This makes the Wi-Fi inactive for internet routing whenever you connect the cable. What you ask is scriptable if you know some programming, but there isn't a simple trigger to actually turn the Wi-Fi radio off at the user level of the OS.

share|improve this answer

This script on MacOSXHints worked for me up until installing Mavericks (10.9.0) on a new Late 2013 MBP retina 15" - but it did work quite well on my previous two non-retina MBPs before that.

Note that you may need to edit the script to use your correct interface numbers (ie en1).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.