How to configure macOS Network settings per connection

9

1

I'm using macbook air with Mavericks. I'm connecting so many wireless network, I could set up TCP/IP settings per network which I connected. How can I do this in Mavericks?

example: I have a router in my home and I want connect this router with manual TCP/IP settings like ip, dns, etc. and I have a router in my office too, but I want connect this router with DHCP. In Linux OSes, network settings setting per network. I'm using Mac OS X now and How can I do that in Mavericks?

Kaan Kölköy

Posted 2014-04-18T13:16:15.360

Reputation: 105

1Welcome to superuser. Question does not contain remotely enough information on your problem and what you are trying to achieve. Broadly speaking, network information is handed out by a server/service called DHCP for each network, generally on a router for home and small network setups; larger networks have more sophisticated and therefore complex configurations, but these are usually managed by professional network administrators. – David – 2014-04-18T13:24:41.850

I give an example: I have a router in my home and I want connect this router with manuel TCP/IP settings like ip, dns, etc. and I have a router in my office too, but I want connect this router with DHCP. In Linux OSes, network settings setting per network. I'm using Mac OS X now and How can I do that in Mavericks? – Kaan Kölköy – 2014-04-18T13:25:57.627

1Can't say I've ever seen this in linux. network settings are defined by interface, not by network. – Frank Thomas – 2014-04-18T14:33:03.303

You can set network settings per network in linux. Wireless networks already set per ssid, also you can set network settings for ethernet interface if you create profiles to select when you connected to internet via ethernet interface. – Kaan Kölköy – 2014-04-18T15:19:06.480

1Please edit your new information into your question. – Ƭᴇcʜιᴇ007 – 2014-04-18T16:38:23.513

Either you have your network interface setup with manual, static settings, OR you have it setup to configure automatically. Automatic configuration is handled by a system called DHCP. Your computer (Operating system actually) can not possibly know what network it is on until it has a network configuration. DHCP works with your client sending a message to the broadcast address 255.255.255.255, and the server sends back the configuration to 0.0.0.0 paired with your client's MAC (hardware) address. Your client/computer then says, "oh, that is me, so that will be my config." – David – 2014-04-18T20:29:46.993

Why you typing everythin except my question's answer? I can do it on Linux! You can search it if you don't know. – Kaan Kölköy – 2014-04-18T20:32:24.430

With some home routers , you can configure to hand out a specific config to a specific to a specific MAC address. How much of the config you can customise depends on the router. With a full server system, Windows or Linux, you can fully customise the what is handed out to a specific MAC address. – David – 2014-04-18T20:32:35.760

Maybe if you said exactly what your Linux config was, then we we could help you with a specific config for your MacOSX. Right now, your details are incomplete. – David – 2014-04-18T20:34:57.130

I'm not using Linux anymore, but anybody still understand my problem, I will install on vm and can take screenshots. – Kaan Kölköy – 2014-04-18T20:37:02.647

Please think through what you are asking: You are asking to you have your computer automatically decide to be either in DHCP mode, or in Static Mode, depending on what network your computer is attached to. Please answer me this: How does your computer know which network it is attached into: your home network, your work network, or some other random network? Could you provide a link to a google search for this linux config that you are talking about? – David – 2014-04-18T20:49:06.753

Linux can do it. In wireless, configures saved by SSID; in ethernet, it doesn't save but you can create profile for eth interface and ypu can select profile after plugged ethernet. – Kaan Kölköy – 2014-04-18T20:52:05.030

Answers

11

The feature you are asking for is called Locations, found in System Preferences > Network > Location pop-up menu.

Example

ss#1

NOTE: Once you have created and set additional network locations, you can then use the Location menu item from the Apple menu to switch to a different location.

References

David

Posted 2014-04-18T13:16:15.360

Reputation: 2 222