Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-31-2005, 11:53 AM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
use two separate internet connections
I have two different internet connections attached to a linux box.
I have already set their bandwiths with a tbf qdisc (they have a different bandwith).
Is there a simple way I can force the linux box to use both connections? (the simpler, the better, I guess. It's no flashy stuff).
I'm trying following "Linux Advanced Routing & Traffic Control HOWTO", but haven't been able to get them to work. It fails on the very last command to "blend" them ( http://lartc.org/howto/lartc.rpdb.multiple-links.html):
Code:
# ip route add default scope global nexthop via 201.249.120.1 dev eth1 weight 1 nexthop via 201.249.112.1 dev eth2 weight 1
RTNETLINK answers: Invalid argument
Configuration of routes and links (eth0 is the lan connection. eth1 and eth2 are the two separate internet connections).
Code:
# ip link show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0f:fe:02:ec:d8 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc tbf qlen 1000
link/ether 00:60:08:18:4b:4c brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc tbf qlen 1000
link/ether 00:50:da:b7:40:6f brd ff:ff:ff:ff:ff:ff
# ip address show
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0f:fe:02:ec:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.47/24 brd 192.168.0.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc tbf qlen 1000
link/ether 00:60:08:18:4b:4c brd ff:ff:ff:ff:ff:ff
inet 201.249.122.247/21 brd 201.249.127.255 scope global eth1
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc tbf qlen 1000
link/ether 00:50:da:b7:40:6f brd ff:ff:ff:ff:ff:ff
inet 201.249.114.10/21 brd 201.249.119.255 scope global eth2
# ip route show
201.249.120.0 dev eth1 scope link src 201.249.122.247
201.249.112.0 dev eth2 scope link src 201.249.114.10
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.47
201.249.120.0/21 dev eth1 proto kernel scope link src 201.249.122.247
201.249.112.0/21 dev eth2 proto kernel scope link src 201.249.114.10
default via 201.249.112.1 dev eth2
default via 201.249.120.1 dev eth1
Ideas? 
|
|
|
06-01-2005, 05:04 AM
|
#2
|
Member
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136
Rep:
|
what I can get from your first quote is that you have a load balancing issue. Try to have a check on that
|
|
|
06-01-2005, 08:34 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
I made a very implrtant discovery:
Without CONFIG_IP_ROUTE_MULTIPATH support by the kernel, that command I used WON'T work.
I tried on my mdk box (which has the support) and it worked.
|
|
|
08-19-2005, 11:24 AM
|
#4
|
Member
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157
Rep:
|
thanks!. I need to know this. but how in the world can I know from stock Mandrake 10 distro kernel whether it has support for MULTIPATH ROUTING? /proc/* ? the kernel is 2.6.3
|
|
|
08-26-2005, 08:26 PM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Original Poster
Rep:
|
It does:
Code:
# grep ROUTE_MULTIPATH /boot/config-2.6.3-7mdk
CONFIG_IP_ROUTE_MULTIPATH=y
|
|
|
09-01-2005, 05:05 AM
|
#6
|
Member
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157
Rep:
|
Ok. thanks. that'll be great. 
|
|
|
All times are GMT -5. The time now is 08:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|