LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 10-28-2007, 05:15 AM   #1
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
use simultaneously two network connections


Hi everybody
I intend to use simultaneously two network connections, One dial up and GPRS.
this is meant that if per connection have 5 KB/s speed, I want to download with 10 KB/s or browse with 10 KB/s, of course I can specify route path separately with ROUTE command but I can not create Load balance in network connection
please assist me in doing this task
I am sincerely grateful for your help.
 
Old 10-28-2007, 11:35 AM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

cant be done that way.
each default route from your 2 connections will have their own gateway,
and will still have DL of 5k each. Load Balancing what you will have is when the first connection having heavy traffic - then - the other will help it to route the next traffic,
or can be in which interface is closer to the destination.

HTH.
 
Old 10-28-2007, 01:50 PM   #3
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rossonieri#1 View Post
hi,

Load Balancing what you will have is when the first connection having heavy traffic - then - the other will help it to route the next traffic,
or can be in which interface is closer to the destination.

HTH.
very thanks for you attention
well,now,what configurations or setting up must I do?
I am sincerely grateful for your help
 
Old 10-28-2007, 04:47 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Quote:
Originally Posted by nima0102 View Post
well,now,what configurations or setting up must I do?
As stated by rossonieri, your bandwidth won’t magically increase to be the sum of your uplinks. You can, however, define routes for the multiple uplinks so they are used in a round-robin (or some other algorithm) fashion. For more info, read here.
 
Old 10-28-2007, 05:47 PM   #5
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
OK nima,

(assuming you are using redhat and have all connections established)
first - go to the console and do the following :
check all interfaces : ifconfig -a

you should see you have 2 ppp connection : ppp0 and ppp1

check the route your machine has : netstat -rn

you should see something like this :
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth1
since i dont have dial interface (ppp) the we assume eth0=ppp0 and eth1=ppp1.

you see that we only have 1 default route via dev eth1

adding another default route :
Code:
route add default gw 192.168.1.1 dev eth0
then we will have :
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth1
this way - your linux box will automatically load balance passing traffic to the internet. you can check that using ifconfig again - see the TX and RX value - you should see they will both change.

HTH.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
suse 10.2 knetwork manager not able to run two network cards simultaneously veto Linux - Server 2 03-06-2007 06:29 PM
SuSE network connections? admart35 Suse/Novell 6 01-15-2006 11:57 PM
Network Connections RedRaven Linux - Networking 6 12-19-2004 11:19 PM
How to bridge network connections.... Fireblade74 Linux - Newbie 3 04-17-2004 03:43 PM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 03:26 PM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration