LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2005, 11:53 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
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?
 
Old 06-01-2005, 05:04 AM   #2
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
what I can get from your first quote is that you have a load balancing issue. Try to have a check on that
 
Old 06-01-2005, 08:34 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
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.
 
Old 08-19-2005, 11:24 AM   #4
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
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
 
Old 08-26-2005, 08:26 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
It does:

Code:
# grep ROUTE_MULTIPATH /boot/config-2.6.3-7mdk
CONFIG_IP_ROUTE_MULTIPATH=y
 
Old 09-01-2005, 05:05 AM   #6
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
Ok. thanks. that'll be great.
 
Old 12-06-2005, 07:19 AM   #7
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
I faced the same problem
the simplest soln was netsane

take a look
http://www.linuxquestions.org/questi...d.php?t=381437
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux router/firewall box for shared Internet access from 3 separate LANs? dan.patton Linux - Networking 4 04-15-2006 05:37 PM
Separate Internet connection in network DNS crash !!! Rocco1 Linux - Networking 0 02-24-2005 08:06 PM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 02:42 AM
Internet connections.. xmeson Slackware 1 08-22-2004 07:49 AM
Two possible connections to the Internet? vincebs Linux - Networking 3 01-21-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration