[Webinar] Streamline your web hosting managementRegister Today


Multiple ips in One nic

Posted on 2006-04-06
Medium Priority
Last Modified: 2010-04-14

How do i configure 2 ip's in 1 nic . I want to use the ips the simultaneously. LIke in windows i can configure a secondary ip. I have googled and found ways to add additional ip's but in a different location. This way I cant use both ip's simultaneously. Please help.

Question by:maharajg

Accepted Solution

macassist earned 2000 total points
ID: 16389666
You can setup multiple IPs on one NIC as follows (assuming a fairly recent Mac OS X):

1. Go into the Network System Preferences pane

2. Choose Network Port Configurations from the Show popup menu

3. Click on the New... button, then choose Built-in Ethernet from the Port popup menu

4. Give the new interface a name, then click OK

5. Configure it like any other interface

That's it!

Hope that's of use


Expert Comment

ID: 16415819

Check this article on OSXfaq (Contributed by Tracy Snell):

How do I setup multiple IP addresses?

Multiple IPs work. Let's say your current IP address is, and you want to add a second address of Try a command such as this:
sudo ifconfig en0 inet netmask broadcast alias
(That's all one line)
You need to do: ifconfig -a (or something similiar) first to determine what your Ethernet device is. Hers is en0.
Be VERY careful if doing this remotely. A typo can result in your box not being on the net anymore.

If you want the second IP to be added automatically every time you reboot, edit /etc/iftab, and add the above line almost verbatim to iftab. For instance, her /etc/iftab now reads like this:

      lo0 inet netmask up
      en0 inet netmask up
      en0 inet netmask broadcast alias

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
Is your organization moving toward a cloud and mobile-first environment? In this transition, your IT department will encounter many challenges, such as navigating how to: Deploy new applications and services to a growing team Accommodate employee…

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question