Two default gateways with load balancing

Khemera Lin lin.kh at wicam.com.kh
Thu Mar 30 08:57:55 UTC 2006


Dear All,

 

I'm having 2 Internet links to 2 different ISPs. I would like to set up my
Linux box with 2 default gateways with load balancing. 

 

Could someone please help? Will this do the job:

 

--

ip route add equalize default \

nexthop via 1.1.1.1 dev eth0 weight 2

nexthop via 2.2.2.2 dev eth1 weight 1

--

 

Sorry, I have googled for a while but could not find a good howto on that.
And I found the above command from the LVS-Users list.

 

Thanks for any idea!

 

Khem

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060330/ac5abc43/attachment-0001.htm>


More information about the fedora-list mailing list