Setting Network Settings For Mac
- Network Interface Card (NIC) Settings. By default, each interface is set to automatically negotiate the link speed. In the Advanced settings for an interface, you can set the interface speed, maximum packet size (MTU), and enable an override MAC address.
- Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
- The Advanced settings screen is generally used only by technical users or support. If you've set up your home network to use Static IP addresses, you want to manually configure your DNS settings, you need to set up MAC spoofing (changing the Media Access Control address of the network interface on your networked device), or you want to select an alternate port, select Advanced settings to.
- You can print a list of the current network settings. User Data List/System Manager Data List. Viewing IPv4 Settings Network Information Select the setting to view Check the settings. Viewing IPv6 Settings. The MAC address is displayed.
On your Mac, choose Apple menu System Preferences, then click Network. Open Network preferences for me. Select a service, such as Ethernet or Wi-Fi, in the list on the left. If you don’t see the service you expect, click the Add button, choose an interface for the service, such as Ethernet or Wi-Fi, give the service a name, then click Create.
UPDATE (8/12/08): I simplified the awk portion of the command.
Mac OS X comes with a very convenient tool called networksetup
that makes it relatively easy to view or change network settings from the command line. In Leopard, the command is readily available at /usr/sbin/networksetup
. Since /usr/sbin
exists in the default path, you can access the command directly. In Tiger, Panther, and Jaguar, the command is not anywhere in the default path, but lives buried within the bundled ARD Agent at /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup
. (If you’re not using Leopard, be sure to include the full path to the executable in all of your commands.) Apple’s man page for networksetup
covers all the available options but it’s short on real examples of its use.
Let’s say you manage a menagerie of mottled (i.e. striped or spotted) Macs on a non-dhcp, statically-addressed network. Let’s also say that your network’s DNS servers are about to change addresses to 10.0.0.11 and 10.0.0.12. Without the convenience of dhcp, you’ll have to modify the network configurations of each Mac. Fortunately, networksetup
makes it easy. The command you’ll need to use — which must be run as root — takes the following format:
networksetup -setdnsservers networkservicedns1 [dns2] [..]
where networkservice
is the display name of the interface (e.g. Built-in Ethernet, Airport) that you want to modify, and dns1
, dns2
, etc. are the ip addresses of the new dns servers. Depending on the kinds of Macs you manage, you’ll likely have to use two or more versions of this command to update all Macs with your new network settings. Mac Pros have up to three network interfaces (Built-in Ethernet 1, Built-in Ethernet 2, AirPort), iMacs, MacBooks, and MacBook Pros have two (Built-in Ethernet, AirPort), and MacBook Airs have up to two (AirPort, USB Ethernet).
So, for example, an iMac that uses its ethernet interface to access your network needs to be sent
sudo networksetup -setdnsservers 'Built-in Ethernet' 10.0.0.11 10.0.0.12
while a MacBook that uses its wireless interface needs
sudo networksetup -setdnsservers 'AirPort' 10.0.0.11 10.0.0.12
to update its dns settings.
What if you want a one-size-fits-all command?
I’m glad you asked. Since you can safely assume, in most cases, that the default network interface is the one you want to update, this task begs for a scripty solution. We can use another feature of the networksetup
command to determine the default network interface.
networksetup -listnetworkserviceorder
This lists the computer’s network interfaces in their priority order. On my MacBook Pro, I get
The only part of this result we care about is the text that comes after the “(1)
” on the first line. awk
can extract that for us.
networksetup -listnetworkserviceorder awk -F') ' '/(1)/ {print $2}'
Crash course in awk
If you’re not an awk
-lover, then this command may need some explanation. Before I dive in, I’ll just tell you that awk
is a powerful text search and text-processing language. By default, it breaks down search results by whitespace and assigns resulting “words” into numbered variables. $0 is the entire result, $1 is the first word, $2 is the second word, etc. Any manipulation you want to do with the awk command is put into curly brackets and separated by semicolons.
There are manygreatresources online to help you learn awk
, so I won’t go into too much detail here.
Now let’s break down the command.
awk
-F') ' '/(1)/ {print $2}'
-F') '
The -F switch tells awk
that the character or characters immediately following it should be used as word delimiters. In this case, I want awk
to use a closing parenthesis followed by a space to delimit words — “) “. (Note that the closing parenthesis needs to be double-escaped.) If you’re using more than one consecutive character as a delimiter, the characters must be enclosed in single quotes. Including a space in your delimiter is a handy way of excluding leading spaces from your results.
/(1)/
This section tells awk
that you want it to operate only on lines containing “(1)”. (You need to escape the parentheses.) In this example, we’re looking at the first line only: “(1) Built-in Ethernet
“. Now, moving within the curly brackets, we have…
print $2
This tells awk
to spit out the second word of the line. Since we used “) ” as our delimiter, the second word will be everything after the “) ” on the line that contains “(1)”.
Also, note that the search portion and the command portion are enclosed in single quotes. The entire awk
command turns this
into this
Built-in Ethernet
The payoff — a universal DNS changing command
Now, attaining our universal command is simply a matter of assigning the output of our piped-to-awk
command to a variable and then using that variable in the setdnsservers
command. Since you’ll likely want to use ARD to send this command out, leave out the sudo portion as you can specify this to be run as root from ARD.
The quotes around $mainInt
in the last line are important because the interface name may contain spaces.
But wait, there’s more

Now that you can get the default network interface name, you can easily change other network settings — e.g. proxies, search domains, dhcp — on all your Macs with the same basic command format.
Want to change your search domains?
Want to convert from static addressing to dhcp?
The possibilities may not be endless, but they’re definitely plentiful.
Before connecting to a wireless network, you may have to configureyour network settings to use AirPort. Normally AirPort isactivated by default, but if it isn't, follow the instructions foryour version of Mac OS X: Wear os by google app download.
Setting Network Settings For Mac Os
IU Secure is the wireless network forstudents, faculty, and staff to access on all campuses. IU Secure usesWPA2 Enterprise (Wi-Fi Protected Access) for authenticationand encryption.

Mac OS X 10.5 and later
- From the Apple menu, select System Preferences...In System Preferences, from the View menu, selectNetwork.
- Look for 'Wi-Fi' or 'AirPort' in the list of network ports on the left sideof the
Network preferences
window; the icon to its rightwill be a blue signal indicator. If it's there, skip to step 4. Ifit's not, follow the next step to activate it. - Near the bottom left of the
Network preferences
window, click + (the plus sign). In the sheet that dropsdown, next to 'Interface:', select Wi-Fi or AirPort. ClickCreate. - Click the Wi-Fi or AirPort listing in the list of ports. If it says'Inactive', click the gear icon below the port list and selectMake Service Active.
- On the right side of the
Network preferences
window,there will be a 'Status:' indicator. If it says 'Off', click Turn Wi-Fi On or Turn AirPort On. - Click Advanced.., and then click theTCP/IP tab. From the menu next to 'Configure IPv4:', makesure that Using DHCP is selected. Click OK.
- Click Apply to save this configuration.
Macbook Network Setting
Mac OS X 10.4, 10.3, and 10.2
Where Is Settings On Mac
- From the Apple menu, select System Preferences...In System Preferences, from the View menu, selectNetwork.
- From the menu next to 'Show:', select AirPort. If itisn't available, select Network Port Configurations andAirPort. Then, from the menu, select AirPort.
- On the TCP/IP tab, from the menu next to 'Configure:' or'Configure IPv4:', make sure that Using DHCP is selected.
- Click Apply to save this configuration.