I have a Windows 2008 Server with multiple IPs on same nic.

Posted on 2009-02-17
Last Modified: 2013-12-05
I have a Windows 2008 Server with multiple IPs on same nic. The IP I placed in the IP settings, isn't showing as the primary ip. It's seems to list the IPs in order. Is there a way to set the order?

Here are the IPs and the order that I want. - primary - secondary - secondary

When I do a - whatismyip - it comes back with when it should be .16

It worked how I needed it on windows 2000 server. Is it possible to do the same on Windows 2008 server?
Question by:mntatar
    LVL 22

    Accepted Solution

    If you have multiple IPs on a single NIC in the same subnet (which it looks like you do), they will each be routed to the internet (and whatismyip) with the same metric.  To see the metrics use: "route print" from a command line.

    You can change these metrics using "ROUTE ADD networkid MASK networksubnetmask networkinterface metric x -p"; so in your case, you would want .16 to be your least costly way:
    route add mask x.x.x.16 metric 5 -p

    BTW - What is the last octect of your default gateway?

    Author Comment

    Yes - I have multiple IPs on a single NIC in the same subnet.

    Below is my route table.

    Also, when adding a ROUTE ADD, how do I keep it on reboots?

    Thanks for your response.

    IPv4 Route Table
    Active Routes:
    Network Destination        Netmask          Gateway       Interface  Metric
           On-link    306
           On-link    306         On-link    306         On-link    266         On-link    266         On-link    266         On-link    266         On-link    266
           On-link    306
           On-link    266         On-link    306         On-link    266
    Persistent Routes:
      Network Address          Netmask  Gateway Address  Metric

    Author Comment

    Raised the point value to 500, still needing help.
    LVL 22

    Assisted Solution

    To make the routes persisten after reboots, you would use the route add ... -p

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    729 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

    17 Experts available now in Live!

    Get 1:1 Help Now