Two NICs Two Gateways

Jack-Black used Ask the Experts™
I have a server (Windows 2008 ) with two nic cards, connecting to two networks and when i try to ping an ip on i get a reply saying destination is unreachable but the gate way is that of If i disable one of the nics i can ping the respective network without any problems.

How can i make both work simultaneously an the same time with traffic on the .1 use its gateway and on the .2 use its gateway??
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Have you installed the role Network policy and Access Service and the role service Routing?
That's the way to enable routing on a host.
You need to choose which network will require the least amount of static routing and then remove the gateway from that NIC. Then add a persistant static route for that network. All traffic will go to the gateway unless it matches the route. For example, assuming the gateway for is

route add mask -p


Should i give it a metric of 1?
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

I would only suggest adding the RRAS role if other network clients/servers will be routing through this host. But yes, if you want it to route between those networks then RRAS is the way to go. If you just for it to route it's own traffic correctly then use static routes.
Top Expert 2011

As far as I know there is no option of using 2 default-gateways simultaneously. You will have to remove gateway on  one of the NICs and add routes instead.

The metric will only be used if two routes match, then the lowest metric route will win. You can metric it however you want but a metric of 10 will give you scope to add alternative routes higher and lower.
Top Expert 2014

Please post result of "route print" and ipconfig /all
both gateways should be added with different manually set priority, if that does not work, Routing services will be required and static routes should be set
Solution Consultant
you can add two static routes with gateway .1.0 and .2.0 with Interface parameter and delete the gateway from nic settings.

Post route print and ipconfig /all commands here.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial