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