Static route issue on Windows Server 2008 R2

networkingroutewindows-server-2008-r2

There's a virtual machine with Windows Server 2008 R2 installed. There are two NICs connected to it: PROD & BUP. The BUP interface is configured without default gateway. After adding static route with /p switch, it appears in routing table but traffic still goes through default gateway if you run tracert.

I've even tried to add IF parameter but the same thing, doesn't work.
Machine hasn't been restarted yet.

What is interesting, there is another Windows Server 2008 R2 machine with such static route and BUP interface's IP-address in the same subnet and everything works perfectly.

Best Answer

I've seen this on Windows 2008 R2 a few times, where the route add /p simply doesn't stick. Use netsh with the ipv4 context switch instead.

Let's say your local backup destination net is 192.168.30.0/24. Use netsh like this:

netsh ipv4 add persistentroute 192.168.30.0 255.255.255.0 "BUP"

Where: 192.168.30.0 is the destination net, 255.255.255.0 is the destination subnet mask and "BUP" is the name of the interface you wish to use

Related Topic