Skip to content

A Tool for Auto Switch The Network Between Ethernet And WiFi

License

Notifications You must be signed in to change notification settings

lxy1992/mac-network-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac Network Auto Switch

  • 中文文档
  • OSX 14.3 has fixed this problem, this tool no longer needed in OSX 14, but it still needed in OSX 13
    • I found that the problem still exists in OSX 14, so I will continue to maintain this project.
  • Auto Switch the Ethernet and WiFi
    • Due to the company's poor WiFi env, I switched to using wired network. However, once WiFi is turned on, the network latency quickly increases, meaning that even when connected to the wired network, WiFi is always given priority. Even you change the order in the network list like Apple told us. To solve this problem, I created a command tool that can automatically turn off WiFi and configure the network with just one click.
  • This project is mainly based on Albertbori's work page,
    • I change the script and add some commands to make it work on the OSX 12.1.
    • Finally, make all this work into a single command.

Function

  • When Ethernet connected, WiFi will be closed automatically.
  • When Ethernet disconnected, WiFi will be open automatically.

Support

  • OSX 13
  • Device
    • USB10
    • AX88179A
    • Thunderbolt Ethernet Slot

How to Use

Install

go install github.com/lxy1992/mac-network-switch@latest

Use

sudo mac-network-switch toggleAirport --switch start
sudo mac-network-switch toggleAirport --switch stop

About

A Tool for Auto Switch The Network Between Ethernet And WiFi

Resources

License

Stars

Watchers

Forks

Packages

No packages published