windows static route issue

We have a windows 2003 application server that we have P2V'd.

We are working on getting rid of our 2003 boxes, so this is just a temporary step until we get everything up to 2008/2012. The issue I am facing with this particular server is this.

On our Physical servers we have our primary LAN connection, then a Microsoft Loopback Adapter with a static IP for our load balancer. Beneath that we have some static routes on the server which go out through the primary LAN connection.

After the P2V, the static routes are there, but they are now set to go out the Loopback connector which won't work.

We've tried deleting the static routes, then re-adding them which is fine, but once the server reboots the static routes move back to the loopback.

Even if we do the route add -P and add the interface at the end, the route will still jump back to using the loopback as it's interface after a reboot.

I've tried a netsh int ip reset, and we've also tried removing the loopback and then re-installing the loopback but no matter what, the static routes keep setting themselves to use the loopback adapter rather than our LAN connection.

Anyone ever seen this before?
LVL 4
themightydudeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richard MurphySenior Network AnalystCommented:
If in the properties the virtual adapter has a default gateway remove it and your routes will start working again.
bominthuCommented:
Is the primary lan static route metric lower than loopback ?

If it is set correctly, and change back to loop back once rebooted, the simple thing you can do to fix is create a batch file to be ran at startup(startup script) that set the static route entry the way you want.

By the way, what Spartan82 mentioned also correct(if you don't need gateway for loopback).
themightydudeAuthor Commented:
Our virtual loopback adapter has no default gateway.

Our Loopback adapter metric is manually set to 254
Our LAN connetion has a metric of 0

I figured we could do a batch file to manually set the routes each time, but was hoping to find out why my routes keep jumping on me.
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

bominthuCommented:
if there is no GW, what make you think that it is going out from loopback ?
themightydudeAuthor Commented:
It's not going anywhere is the problem.

There's a couple networks we assign static routes for that we should be able to ping. Our LAN connection has a gateway and when we set the static route we can ping these networks set by static route.

When we reboot the server and try to ping those same networks again, we can no longer ping them. Then looking at the routing table we see that the interface for those static routes are now set to the loopback interface rather than the LAN interface.
bominthuCommented:
Did you try removing Stale network adapters ? Ref: http://goo.gl/dMvccC

Anyway if I were you, I would simply use the startup script to ensure.
themightydudeAuthor Commented:
We ended up re-doing the P2V and it worked fine after that.

Not sure what the issue ended up being.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
themightydudeAuthor Commented:
Solved on my own
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.