networksetup

Search networksetup

List All Network Hardware from the Command Line in OS X

Sep 3, 2014 - 6 Comments
Network Utility in OS X

The networksetup utility offers a command line interface to configuring the variety of Mac networking features available in 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 a … Read More

How to Disable IPv6 in Mac OS X

Apr 18, 2014 - 6 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 - 10 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. Changing the MTU size has been a solution to some dropping wi-fi connections in … Read More

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

Jun 3, 2011 - 4 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. Retrieving DNS details from Terminal … Read More

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

May 31, 2011 - 10 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 - 11 Comments
connect-wireless-terminal

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 - Leave a Comment

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