Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-09-2012, 03:12 AM   #1
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Rep: Reputation: 3
use two internet connections


i have two internet connections.i want to use it for my network. i am using cent os 6.3. how can it be possible? can i limit the bandwidth for client machine via cent os 6.3.

Old 11-09-2012, 04:58 AM   #2
LQ Newbie
Registered: Dec 2011
Location: Shepperton - UK
Distribution: Lubuntu & Puppy ... mostly ;-)
Posts: 25
Blog Entries: 16

Rep: Reputation: Disabled
This is a question with lots of answers .... assuming that you have multiple routers connecting to two different ISP's do you have a third master router that will be making the decisions about where to route? If so your client laptops can still use this device as its default gateway.

Lets assume that is the case, but even if you have two internet connections direct on your laptop the theory is the same.

you can split the traffic by destination IP (using route commands) so that all traffic to say your work IP range went to router A and all other traffic went to router B. You can increase the granularity with using IP + ports i.e. all web traffic to router A and all e-mail traffic to router B.

You need to read up on the "route" and "iptables" commands but it is entirely possible.
Old 11-09-2012, 05:04 AM   #3
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
I have server with 3 NIC and on 2 NIC internet is directly connected and other one is for my local network now i want to use those both.
Old 11-11-2012, 11:30 AM   #4
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled
Hi Dushyant,

You can use iproute2 to share (use both) your ISP Connections. To add a multi-hop route:
ip route add default scope global nexthop via <gateway-ip-isp1> dev <isp1-interface> weight 1 nexthop via <gateway-ip-isp2> dev <isp2-interface> weight 1


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
Two internet connections to one ORiGiNAl-SiN Linux - Networking 2 01-12-2010 09:23 PM
Internet connections.. xmeson Slackware 1 08-22-2004 07:49 AM
Internet connections apffal Mandriva 0 03-10-2004 06:44 AM
two internet connections Santas Linux - Networking 4 02-06-2004 11:06 AM
Two possible connections to the Internet? vincebs Linux - Networking 3 01-21-2004 05:40 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 PM.

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