Multiple ips in One nic

Posted on 2006-04-06
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
    LVL 3

    Accepted Solution

    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

    LVL 7

    Expert Comment


    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

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    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…
    In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now