networksetup

Search networksetup

How to Change DNS from Command Line of Mac OS X

Jun 2, 2015 - 12 Comments
Terminal in macOS

Advanced Mac users may find it useful to know that DNS servers in OS X can be set from the command line, without having to turn to the System Preferences Network control panel. While the GUI Network control panel is undeniably the easiest approach for most Mac users, the command line method offers benefits for … Read More

List All Network Hardware from Command Line in Mac OS

Sep 3, 2014 - 8 Comments
Network Utility in Mac OS

The networksetup utility offers a command line interface to configuring the variety of Mac networking features available in Mac OS X. We’ve discussed networksetup and accompanying features many times here for more advanced purposes, but one of the simpler uses of networksetup is that it can list out every piece of networking hardware attached to … Read More

How to Disable IPv6 in Mac OS X

Apr 18, 2014 - 22 Comments
IPv6 Mac

Some Mac users may wish to disable IPv6 networking support on their machines. This may be desirable to avoid certain networking conflicts, or to increase security for users in higher threat environments, since IPv6 has been found by researchers to be potentially vulnerable to man-in-the-middle and other network attacks. Though most users don’t use IPv6 … Read More

Set MTU Size from the Command Line of Mac OS X

Jan 14, 2013 - 18 Comments
Set the MTU size in Mac OS X

MTU stands for Maximum Transmission Unit, and a larger MTU size generally increases efficiency of a network connection because each packet carries more data, but sometimes the default MTU sizes (often 1500) will cause issues with some networks and needs adjusting. If you need to change the MTU size on a Mac, you can do … Read More

Get DNS Server IP Addresses from the Command Line in Mac OS X

Jun 3, 2011 - 6 Comments

You can quickly retrieve active DNS server IP addresses on any Mac by using the networksetup utility. This is done from the command line, so launch the Terminal app and type one of the following command strings, dependent on the version of OS X that is running on the Mac.

Enable and Disable AirPort Wireless from the Command Line in Mac OS X

May 31, 2011 - 12 Comments
AirPort Wireless icon

Sometimes the easiest fix when troubleshooting an AirPort wireless connection problem is to just turn AirPort on and off. Instead of using the menu item or System Preferences, we can enable and disable AirPort very quickly directly from the Mac OS X Terminal.

Connect to a Wireless Network from the Command Line

Apr 12, 2011 - 16 Comments

Using the powerful ‘networksetup’ utility, we can connect to wireless networks directly from the command line of Mac OS X. The syntax you’ll want to use to accomplish joining a network is as follows: networksetup -setairportnetwork [interface] [router SSID] [password]

How to Join a Network from Command Line in Mac OS X

May 27, 2010 - 2 Comments

The networksetup utility allows you to join any available network, whether or not it is a router connected through Ethernet, a wi-fi router that is or is not broadcasting an SSID, and whether or not it has any password encryption required. Since most networking is done with wireless communications these days, we’ll focus on joining … Read More

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site