Difference between revisions of "Load balancing between two gateways"

From Notes_Wiki
m
m
 
Line 1: Line 1:
<yambe:breadcrumb>IP routing 2 configuration|IP routing 2</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Network related configuration|Network configuration]] > [[IP routing 2 configuration]] > [[Load balancing between two gateways]]
=Load balancing between two gateways=


For load balancing between two gateways use:
For load balancing between two gateways use:
Line 14: Line 13:


For more information refer http://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN298
For more information refer http://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN298
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Network related configuration|Network configuration]] > [[IP routing 2 configuration]] > [[Load balancing between two gateways]]

Latest revision as of 12:42, 14 July 2022

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