Comment Comment by danpetrov There is also "networksetup", which allows you to do pretty much anything you want with network configuration. Useful if you want to e.g. automate VPN network switching or locations. parent danpetrov 5 years ago