We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Multiple ips in One nic

maharajg asked
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.

Watch Question

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


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.