Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-02-17
8
Medium Priority
?
2,686 Views
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.
xxx.xxx.0.16 - primary
xxx.xxx.0.15 - secondary
xxx.xxx.0.17 - secondary

When I do a - whatismyip - it comes back with xxx.xxx.0.15 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?
0
Comment
Question by:mntatar
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Paka earned 2000 total points
ID: 23698830
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 0.0.0.0 mask 0.0.0.0 x.x.x.16 metric 5 -p

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

Author Comment

by:mntatar
ID: 23723575
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
          0.0.0.0          0.0.0.0      xxx.xxx.0.1     xxx.xxx.0.15    266
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      xxx.xxx.0.0    255.255.255.0         On-link      xxx.xxx.0.15    266
     xxx.xxx.0.15  255.255.255.255         On-link      xxx.xxx.0.15    266
     xxx.xxx.0.16  255.255.255.255         On-link      xxx.xxx.0.15    266
     xxx.xxx.0.17  255.255.255.255         On-link      xxx.xxx.0.15    266
    xxx.xxx.0.255  255.255.255.255         On-link      xxx.xxx.0.15    266
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      xxx.xxx.0.15    266
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      xxx.xxx.0.15    266
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0      xxx.xxx.0.1  Default
===========================================================================
0
 

Author Comment

by:mntatar
ID: 23746014
Raised the point value to 500, still needing help.
0
 
LVL 22

Assisted Solution

by:Paka
Paka earned 2000 total points
ID: 23753654
To make the routes persisten after reboots, you would use the route add ... -p
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses
Course of the Month20 days, 21 hours left to enroll

810 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