LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-09-2012, 03:12 AM   #1
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 101

Rep: Reputation: 2
use two internet connections


hi,

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.



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

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
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 2
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
hamlindsza
Member
 
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
 
  


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
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


All times are GMT -5. The time now is 11:46 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