I got to know that this question has been coming again and again in
ILUGC for several years now.
How to share three ISP providers say Airtel, BSNL and Tata Indicom or
Reliance wireless or whatever?
The ISP gives the routers that dish out a private IP to us. So the
idea is to divide the traffic from another
node on the network with just one interface since the IP routing
happens in software.
The goal here is to send the outgoing traffic to the Internet using 2
or more default routes instead of one default
route.
It is a very simple idea and easy thing to do in OpenBSD. In Linux of
course it is difficult. ;)
First the simple way. Just follow these instructions.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
6.14 - How can I do equal-cost multipath routing?
Equal-cost multipath routing refers to having multiple routes in the
routing table for the same network, such as the default route,
0.0.0.0/0. When the kernel is doing a route lookup to determine where
to send packets destined to that network, it can choose from any of
the equal-cost routes. In most scenarios, multipath routing is used to
provide redundant uplink connections, e.g., redundant connections to
the Internet.
The route(8) command is used to add/change/delete routes in the
routing table. The -mpath argument is used when adding multipath
routes.
# route add -mpath default 10.130.128.1
# route add -mpath default 10.132.0.1
Verify the routes:
# netstat -rnf inet | grep default
default 10.130.128.1 UGS 2 134 - fxp1
default 10.132.0.1 UGS 0 172 - fxp2
In this example we can see that one default route points to
10.130.128.1 which is accessible via the fxp1 interface, and the other
points to 10.132.0.1 which is accessible via fxp2.
Since the mygate(5) file does not yet support multipath default
routes, the above commands should be added to the bottom of the
hostname.if(5) files for the fxp1 and fxp2 interfaces. The /etc/mygate
file should then be deleted.
/etc/hostname.fxp1
!route add -mpath default 10.130.128.1
/etc/hostname.fxp2
!route add -mpath default 10.132.0.1
Lastly, don't forget to activate the use of multipath routes by
enabling the proper sysctl(3) variable.
# sysctl net.inet.ip.multipath=1
# sysctl net.inet6.ip6.multipath=1
Be sure to edit sysctl.conf(5) to make the changes permanent.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
If a company in Chennai wants this done I could do this for a nominal fee.
Here are some Linux links for you(Many thanks to Thanigairajan who
pointed me to this question
and these links).
http://www.linuxquestions.org/linux/answers/Networking/Spanning_Multiple_DSLs
http://www.linuxquestions.org/questions/linux-networking-3/how-to-do-load-balancing-317584/
-Girish
--
Gayatri Hitech
web: http://gayatri-hitech.com
SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc