Hi,
I have two servers with dual nics. One Nic is for just about everything and the second nic on both machines are just for the two machine to talk to each other.
I am trying to find a decent guide on how to set up the routing for this to happen. The second server will be on a separate network (different datacenters ultimately) but at this point I am building the software and config stack on two virtual machines (ESXi).
Each servers two nics will use the same gateway but nic 1 will handle most (default) traffic and the second will route to the other machines IP address.
Say Server 1s gateway is 10.0.0.0/24 and server 2s gateway is 10.0.1.0/24.
For ESXi and my home network, both of these gateways will be virtual machines (CentOS) and connect to a virtual router (CentOS) which will connect to my internal Lan (192.168.1.0/24) for internet access (package downloads and patches).
S1-Nic1(10.0.0.1)->GW1(10.0.0.254)
S1-Nic2(10.0.0.2)->GW1(10.0.0.254)
S2-Nic1(10.0.1.1)->GW2(10.0.1.254)
S2-Nic2(10.0.1.2)->GW2(10.0.1.254)
GW1(10.0.0.254)->RT1(192.168.1.253)
GW2(10.0.1.254)->RT1(192.168.1.253)
RT1(192.168.1.253)->ISP Router(192.168.1.254) -> WAN (Internet)
Not sure the best tool to use to setup the routes (iproute2 seems to be the one to use). Not sure the rules to add.
Direction, tutorials etc would be great as most I have found only talk about setting up redundancy (failover) or teaming and not multi path routing.
If anyone is wondering, the second nics are for MySQL replication traffic only and is a build requirement.
Thanks
RB
I have two servers with dual nics. One Nic is for just about everything and the second nic on both machines are just for the two machine to talk to each other.
I am trying to find a decent guide on how to set up the routing for this to happen. The second server will be on a separate network (different datacenters ultimately) but at this point I am building the software and config stack on two virtual machines (ESXi).
Each servers two nics will use the same gateway but nic 1 will handle most (default) traffic and the second will route to the other machines IP address.
Say Server 1s gateway is 10.0.0.0/24 and server 2s gateway is 10.0.1.0/24.
For ESXi and my home network, both of these gateways will be virtual machines (CentOS) and connect to a virtual router (CentOS) which will connect to my internal Lan (192.168.1.0/24) for internet access (package downloads and patches).
S1-Nic1(10.0.0.1)->GW1(10.0.0.254)
S1-Nic2(10.0.0.2)->GW1(10.0.0.254)
S2-Nic1(10.0.1.1)->GW2(10.0.1.254)
S2-Nic2(10.0.1.2)->GW2(10.0.1.254)
GW1(10.0.0.254)->RT1(192.168.1.253)
GW2(10.0.1.254)->RT1(192.168.1.253)
RT1(192.168.1.253)->ISP Router(192.168.1.254) -> WAN (Internet)
Not sure the best tool to use to setup the routes (iproute2 seems to be the one to use). Not sure the rules to add.
Direction, tutorials etc would be great as most I have found only talk about setting up redundancy (failover) or teaming and not multi path routing.
If anyone is wondering, the second nics are for MySQL replication traffic only and is a build requirement.
Thanks
RB