* [LARTC] 2 gateway on linux
@ 2003-05-06 10:18 Zealous
2003-05-06 14:06 ` Martin A. Brown
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Zealous @ 2003-05-06 10:18 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
Hi friends,
I have linux box redhat 8.0. it has four port dlink card. I have 2 isps. now i want to configure 2 ips on this ethernet card.
example
eth0 = 192.168.0.10/ 255.255.255.192 isp 1 (public ip) gateway = 192.168.0.1
eth1 = 172.16.0.10/ 255.255.255.240 isp 2 (public ip) gateway = 172.16.0.1
now i m giving
ip route add default via 192.168.0.1 then ....all traffic is going to isp1 link
but then from www.tracert.com i cant ping or trace my isp2 ip that is 172.16.0.10
if i do this
ip route add default via 172.16.0.1 then ...all traffic is going to isp2 link
but then from www.tracert.com i cant ping or trace my isp1 ip that is 192.168.0.10
so can any body tell me what should i do in this case. I want this both isps ip address to live on internet. i want to pass some traffic on isp1 link and some traffic on isp2 link.
what will the routing??? how do i configure 2 gateways so that both ip can be live on internet.
waiting for kind reply.
Thanks,
Joel n.Solanki
Systems Engineer
D2V ISP Pvt Ltd.
Vadodara.
[-- Attachment #2: Type: text/html, Size: 2808 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] 2 gateway on linux
2003-05-06 10:18 [LARTC] 2 gateway on linux Zealous
@ 2003-05-06 14:06 ` Martin A. Brown
2003-05-06 16:09 ` Kenneth Porter
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Martin A. Brown @ 2003-05-06 14:06 UTC (permalink / raw)
To: lartc
Hello Joel,
: ip route add default via 192.168.0.1 then ....all traffic is going to
: isp1 link but then from www.tracert.com i cant ping or trace my isp2 ip
: that is 172.16.0.10
:
: ip route add default via 172.16.0.1 then ...all traffic is going to
: isp2 link but then from www.tracert.com i cant ping or trace my isp1 ip
: that is 192.168.0.10
:
: so can any body tell me what should i do in this case. I want this both
: isps ip address to live on internet. i want to pass some traffic on
: isp1 link and some traffic on isp2 link.
There are two different types of solutions. If you can describe which
type of traffic you wish to send to which ISP, you can use multiple
uplinks without load sharing [1]. If you wish to use load sharing, then
you'll need to look at the nano HOWTO [2].
: what will the routing??? how do i configure 2 gateways so that both ip
: can be live on internet.
Good luck,
-Martin
[1] http://linux-ip.net/html/adv-multi-internet.html
[2] http://www.ssi.bg/~ja/nano.txt
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] 2 gateway on linux
2003-05-06 10:18 [LARTC] 2 gateway on linux Zealous
2003-05-06 14:06 ` Martin A. Brown
@ 2003-05-06 16:09 ` Kenneth Porter
2003-05-09 12:21 ` Martin A. Brown
2003-05-10 4:23 ` Zealous
3 siblings, 0 replies; 5+ messages in thread
From: Kenneth Porter @ 2003-05-06 16:09 UTC (permalink / raw)
To: lartc
--On Tuesday, May 06, 2003 09:06:55 AM -0500 "Martin A. Brown"
<mabrown-lartc@securepipe.com> wrote:
> There are two different types of solutions. If you can describe which
> type of traffic you wish to send to which ISP, you can use multiple
> uplinks without load sharing [1].
This sounds like the problem I posted earlier this week. I've got most of
my traffic going out eth2 (T1) and a little going out eth1 (ADSL). eth2 is
the default gateway, and a few selected netblocks and hosts are statically
routed to eth1.
Now I find that I can't traceroute or ping to eth2 from a host routed to
eth1. The failing ping seems to be because the ICMP replies have a source
address of eth2 but are going out eth1, and I suspect the ISP is
egress-filtering these. I'm guessing this happens to all my replies. Is
there any way around this? The ISP for eth1, which is on a /29, is PacBell.
Should I bother to ask them to put in an exception in their egress filter?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] 2 gateway on linux
2003-05-06 10:18 [LARTC] 2 gateway on linux Zealous
2003-05-06 14:06 ` Martin A. Brown
2003-05-06 16:09 ` Kenneth Porter
@ 2003-05-09 12:21 ` Martin A. Brown
2003-05-10 4:23 ` Zealous
3 siblings, 0 replies; 5+ messages in thread
From: Martin A. Brown @ 2003-05-09 12:21 UTC (permalink / raw)
To: lartc
Hello Thomas,
: > There are two different types of solutions. If you can describe which
: > type of traffic you wish to send to which ISP, you can use multiple
: > uplinks without load sharing [1]. If you wish to use load sharing, then
: > you'll need to look at the nano HOWTO [2].
:
: In a near furture I will try solution 2. I have the same setup where
: connection 1 is connected to a adsl and connection 2 is a wireless
: link from headquarters to servercamp. Now the question is would it be
: possible to do loadbalancing with failover on those 2 connections and
: set a routingpolicy that will route all traffic to servercamp iprange
: over the wireless link at the same time?
Yes. It should be trivial to force all connections to servercamp over the
wireless link.... I assume that $ADSL is your ADSL gateway, and $WIRELESS
is your wireless gateway:
Your default route will look something like this:
ip route add default nexthop via $WIRELESS nexthop via $ADSL equalize
Your route to servercamp will look something like this:
ip route add $servercamp via $WIRELESS
Any networks you wish to force over the wireless link should be specified
in the routing table explicitly. Linux will always choose the most
specific route available. For a description of the route selection
process, see
http://linux-ip.net/html/routing-selection.html
Good luck,
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LARTC] 2 gateway on linux
2003-05-06 10:18 [LARTC] 2 gateway on linux Zealous
` (2 preceding siblings ...)
2003-05-09 12:21 ` Martin A. Brown
@ 2003-05-10 4:23 ` Zealous
3 siblings, 0 replies; 5+ messages in thread
From: Zealous @ 2003-05-10 4:23 UTC (permalink / raw)
To: lartc
Great
Thanks,
I will implement this.
Thanks
Joel
----- Original Message -----
From: "Thomas Kirk" <thomas@arkena.dk>
To: "Martin A. Brown" <mabrown-lartc@securepipe.com>
Cc: "Zealous" <zealous@bonbon.net>; "lartc" <lartc@mailman.ds9a.nl>
Sent: Friday, May 09, 2003 4:40 PM
Subject: Re: [LARTC] 2 gateway on linux
> Hep Netgurus
>
> On Tue, May 06, 2003 at 09:06:55AM -0500, Martin A. Brown wrote:
>
> > There are two different types of solutions. If you can describe which
> > type of traffic you wish to send to which ISP, you can use multiple
> > uplinks without load sharing [1]. If you wish to use load sharing, then
> > you'll need to look at the nano HOWTO [2].
>
> In a near furture I will try solution 2. I have the same setup where
> connection 1 is connected to a adsl and connection 2 is a wireless
> link from headquarters to servercamp. Now the question is would it be
> possible to do loadbalancing with failover on those 2 connections and
> set a routingpolicy that will route all traffic to servercamp iprange
> over the wireless link at the same time?
>
> Thanks in advance
>
> --
> Venlig hilsen/Kind regards
> Thomas Kirk
> ARKENA
> tlf/phone +4570233456
> thomas(at)arkena(dot)com
> Http://www.arkena.com
>
>
> It is not good for a man to be without knowledge,
> and he who makes haste with his feet misses his way.
> -- Proverbs 19:2
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-05-10 4:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06 10:18 [LARTC] 2 gateway on linux Zealous
2003-05-06 14:06 ` Martin A. Brown
2003-05-06 16:09 ` Kenneth Porter
2003-05-09 12:21 ` Martin A. Brown
2003-05-10 4:23 ` Zealous
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.