Load balancing between two gateways
From Notes_Wiki
Home > CentOS > CentOS 6.x > Network configuration > IP routing 2 configuration > Load balancing between two gateways
For load balancing between two gateways use:
ip route del default ip route add default scope global nexthop via <gateway_1> dev <interface of gateway 1> weight 1 \ nexthop via <gateway_2> dev <interface of gateway 2> weight 1
Here weights can be changed to make one route more preferable to other.
We can use 'ip route show' command to verify that routes got added properly.
For more information refer http://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN298
Home > CentOS > CentOS 6.x > Network configuration > IP routing 2 configuration > Load balancing between two gateways