On linux boxes it is possible to add multiple ip addresses to the same network interface.

It's achived with the following command:

ip addr add dev eth0

Is there any way to to the same with OS X ?

I've tried to put multiple ip addresses (comma separated like the dns) in System Preferences / Network with no luck...

up vote 22 down vote accepted

Yeah, it's pretty easy. Open the System Preferences, go to Networking, then click the Plus sign under the left bar. Choose the interface, give a name to the adapter configuration you're creating, then press OK and deal with it as you would like to. Click Apply when you're done, and enjoy. Your adapter now has two IP addresses.

  • How can it make it work with a browser? I mean, I can ping or telnet using the new address, but I can't connect using the browser... – yeyeyerman Feb 26 '16 at 11:32
  • You can reorder adapters in order of preference by dragging and dropping them. – zneak Feb 26 '16 at 15:19

sudo ifconfig en0 alias up

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.