Link to home
Start Free TrialLog in
Avatar of daya83753
daya83753

asked on

Multiple gateways on a windows server

I have two windows servers which needs to communicate with each other as well as with a set of desktops. They are in cluster with a heart beat connection between them thru a layer 2 switch.
Each server has 4 NICs. 2 NICs are teamed and set with a defult gateway of 172.30.0.1. 3rd NIC is setup with 172.31.0.1 as default gateway and this subnet is purely used for a cluster heartbeat connectvity purposes.

When the sever has to send the packets to the desktops (192.168.x.x) via the 172.30.0.1 gateway, sometimes it randomly sends via heartbeat network (172.31.0.1 gateway)and the packets are being dropped at the first hop itself.
I have manually setup route entries in the server to use the 172.30.0.1 gateway.. but still the problem persists. Is there anything i could do here?
Avatar of Mino DC
Mino DC
Flag of Italy image

delete gateway on heathbeat networks and add a permanent route in this way on both servers.
On Server A type in prompt this command:
route add 172.31.0.x mask 255.255.255.255 172.31.0.1 -p
(x=Server B ip address )

route add 172.31.0.y mask 255.255.255.255 172.31.0.1 -p
(y=Server A ip address )
pardon....the second route

route add 172.31.0.y mask 255.255.255.255 172.31.0.1 -p
(y=Server A ip address )

you must type on Sever B.
After that you add the route for herathbeat, you can add the gateway for Lan Network (172.30.0.1), and delete the route that you have added with gateway 172.30.0.1
Avatar of daya83753
daya83753

ASKER

Thanks. i am going to do the folllowing then?

1. delete the heartbeat gateway(172.31.0.1) on the NIC in both the servers.
2. make a router entry as follows -
On Server A :
route add 172.31.0.x mask 255.255.255.255 172.31.0.1 -p
<< actual subnet mask for this network is 255.255.255.192..shud i use this or all 255's?)>>(x=Server B ip address )

On Sever B.
route add 172.31.0.y mask 255.255.255.255 172.31.0.1 -p
<< actual subnet mask for this network is 255.255.255.192..shud i use this or all 255's?)>>(
(y=Server A ip address )

3. add 172.30.0.1 gateway to the NIC properties and delete the route entry previously made on both the servers.

ASKER CERTIFIED SOLUTION
Avatar of Mino DC
Mino DC
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial