Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #2354 > unrolled thread
| Started by | Clark Smith <noaddress@nowhere.net> |
|---|---|
| First post | 2011-02-05 16:16 +0000 |
| Last post | 2011-02-07 22:38 +0100 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.os.linux.networking
Selecting network for Internet access Clark Smith <noaddress@nowhere.net> - 2011-02-05 16:16 +0000
Re: Selecting network for Internet access Jan Wideł <jwnews@_NOSPAM_debian.maszyna.pl> - 2011-02-05 18:20 +0100
Re: Selecting network for Internet access Douglas Mayne <none@invalid.com> - 2011-02-05 18:09 +0000
Re: Selecting network for Internet access Thomas Schmidt <bbeamer@gmx.de> - 2011-02-08 17:32 +0100
Re: Selecting network for Internet access Max <nomail@forme.invalid> - 2011-02-07 22:38 +0100
| From | Clark Smith <noaddress@nowhere.net> |
|---|---|
| Date | 2011-02-05 16:16 +0000 |
| Subject | Selecting network for Internet access |
| Message-ID | <iijt5m$krl$1@news.albasani.net> |
I know very little about networking so please bear with me. I have a Linux box M with two NICs. The first NIC is connected to network A, whereas the second NIC is connected to network B. Both networks have an Internet gateway. These gateways are totally independent from each other. Currently all Internet traffic on M is sent/received through network A. Can I dynamically select in M which of the A and B networks to use for Internet traffic?
[toc] | [next] | [standalone]
| From | Jan Wideł <jwnews@_NOSPAM_debian.maszyna.pl> |
|---|---|
| Date | 2011-02-05 18:20 +0100 |
| Message-ID | <20110205182011.041b0a6b@kiri> |
| In reply to | #2354 |
Dnia 2011-02-05, o godz. 16:16:54 Clark Smith <noaddress@nowhere.net> napisał(a): > I know very little about networking so please bear with me. > > I have a Linux box M with two NICs. The first NIC is > connected to network A, whereas the second NIC is connected to > network B. Both networks have an Internet gateway. These gateways are > totally independent from each other. > > Currently all Internet traffic on M is sent/received through > network A. Can I dynamically select in M which of the A and B > networks to use for Internet traffic? Yes. 1) any dynamic routing protocol, like RIP, OSPF ( the uplinks A and B need support this) or 2) http://lartc.org/lartc.html#LARTC.RPDB.MULTIPLE-LINKS -- Jasiek
[toc] | [prev] | [next] | [standalone]
| From | Douglas Mayne <none@invalid.com> |
|---|---|
| Date | 2011-02-05 18:09 +0000 |
| Message-ID | <iik3o5$fqt$2@news.xmission.com> |
| In reply to | #2354 |
On Sat, 05 Feb 2011 16:16:54 +0000, Clark Smith wrote: > I know very little about networking so please bear with me. > > I have a Linux box M with two NICs. The first NIC is connected to > network A, whereas the second NIC is connected to network B. Both > networks have an Internet gateway. These gateways are totally > independent from each other. > > Currently all Internet traffic on M is sent/received through > network A. Can I dynamically select in M which of the A and B networks > to use for Internet traffic? > You might configure that setup for some form of "high availability" gateway to the internet using network B as a redundant link for network A (or visa versa). The idea is to monitor the link using network A and be prepared to switch to network B if network A fails. The elements which may need to be fixed up upon switching are the default route and name resolution. A simple script could perform the monitoring. BTW, at first glance, using both networks seems like an attractive way to potentially double your bandwidth. Unfortunately, AFAIK, it is not possible to do that, especially without cooperation from network A and network B. Theoretically, it could be done, if they both agreed to watch for your packets and give them special marks of some sort to properly redirect them back to you. I imagine this is the technique that is used to bond some link-layer traffic together. For example, there are protocols for bonded ISDN, bonded T1, bonded DSL, etc. These are sometimes a viable option to incrementally add bandwidth. The downside is it can get pricey in a hurry. -- Douglas Mayne
[toc] | [prev] | [next] | [standalone]
| From | Thomas Schmidt <bbeamer@gmx.de> |
|---|---|
| Date | 2011-02-08 17:32 +0100 |
| Message-ID | <8rd9evFri1U1@mid.uni-berlin.de> |
| In reply to | #2354 |
Am 05.02.2011 20:42, schrieb The Natural Philosopher: > Clark Smith wrote: >> I know very little about networking so please bear with me. >> >> I have a Linux box M with two NICs. The first NIC is connected to >> network A, whereas the second NIC is connected to network B. Both >> networks have an Internet gateway. These gateways are totally >> independent from each other. >> >> Currently all Internet traffic on M is sent/received through >> network A. Can I dynamically select in M which of the A and B networks >> to use for Internet traffic? > > set default route > > man route You would probably also need to get a new ip address and dns server via dhcp from the internet provider in the other network: dhcpcd -n (The command may vary according to your linux version)
[toc] | [prev] | [next] | [standalone]
| From | Max <nomail@forme.invalid> |
|---|---|
| Date | 2011-02-07 22:38 +0100 |
| Message-ID | <4d506657$0$41114$e4fe514c@news.xs4all.nl> |
| In reply to | #2354 |
Op 5-2-2011 17:16, Clark Smith schreef: > I know very little about networking so please bear with me. > > I have a Linux box M with two NICs. The first NIC is connected to > network A, whereas the second NIC is connected to network B. Both > networks have an Internet gateway. These gateways are totally independent > from each other. > > Currently all Internet traffic on M is sent/received through > network A. Can I dynamically select in M which of the A and B networks to > use for Internet traffic? Look for policy routing, Clark -- Max Open Source is an ode to common sense
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.networking
csiph-web