List Info

Thread: Re: routing two gateway




Re: routing two gateway
country flaguser name
Australia
2008-03-14 08:03:27
Yes, if you are using linux, you can use iptables
CONNMARK/MARK for marking packets so when that packets
come from that interface it will go out where it was
marked.

I had that kind of situation before, using different
kinds of iptables and iproute2 will do the trick.


--- "Norbert P. Copones" <norberttricom.com.ph>
wrote:

> though not a linux solution. it can be done on
> openbsd
> 
> sysctl net.inet.ip.multipath=1
> 
> http:/
/www.openbsd.org/faq/faq6.html#Multipath
> 
> 
> cheers!
> 
> >    On Tue, Mar 11, 2008 at 1:35 PM, Nelson
> Serafica
> >    <[2]ntseraficayahoo.com> wrote:
> > 
> >    I have client that will changing provider as I
> stated in my previous
> >    email. Right now, this server has two ip and
> two gateway. 1 from
> >    telcoA and 1 from telcoB (new provider). Right
> now, primary gateway
> >    which is metric 0 is gw of telcoA and telcoB
is
> the secondary as
> >    metric 1. This has a running apache tomcat. 
> Port 80 no doubt is open
> >    for both ips. I have configured
> [3]www2.domain.com to ip of telcoA and
> >    [4]www6.domain.com to ip of telcoB. Now, if I
> browse www2 its ok but
> >    when I browse www6, it is not available.
> >    If I reverse the gateway, primary is telcoB
and
> secondary is telcoA, I
> >    can view [5]www6.domain.com but not
> [6]www2.domain.com.
> >    Do you think both telco is not allowing other
> network? bgp?
> >    Is their a way to reroute lets say if someone
> try to visit
> >    [7]www2.domain.com, it will use telcoA gateway
> and [8]www6.domain.com
> >    will use telcoB?
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> pluglists.linux.org.ph (#PLUG  irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.
ph
> 



     
____________________________________________________________
________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
pluglists.linux.org.ph (#PLUG  irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.
ph

Re: routing two gateway
user name
2008-03-14 14:55:38
you can try pao's idea.

On 3/14/08, pao p < paopaoflashyahoo.com">paopaoflashyahoo.com> wrote:
Yes, if you are using linux, you can use iptables
CONNMARK/MARK for marking packets so when that packets
come from that interface it will go out where it was
marked.

I had that kind of situation before, using different
kinds of iptables and iproute2 will do the trick.


--- "Norbert P. Copones&quot; < norberttricom.com.ph">norberttricom.com.ph>
wrote:

>; though not a linux solution. it can be done on
> openbsd
&gt;
> sysctl net.inet.ip.multipath=1
>
>; http://www.openbsd.org/faq/faq6.html#Multipath
>
>
> cheers!
&gt;
> >   ; On Tue, Mar 11, 2008 at 1:35 PM, Nelson
>; Serafica
&gt; >   ; <[2]ntseraficayahoo.com> wrote:
>; >
> >   ; I have client that will changing provider as I
> stated in my previous
&gt; >   ; email. Right now, this server has two ip and
> two gateway. 1 from
> >   ; telcoA and 1 from telcoB (new provider). Right
> now, primary gateway
&gt; >   ; which is metric 0 is gw of telcoA and telcoB is
> the secondary as
> >   ; metric 1. This has a running apache tomcat.
&gt; Port 80 no doubt is open
> >   ; for both ips. I have configured
> [3]www2.domain.com to ip of telcoA and
> >   ; [4]www6.domain.com to ip of telcoB. Now, if I
> browse www2 its ok but
> >   ; when I browse www6, it is not available.
> >   ; If I reverse the gateway, primary is telcoB and
> secondary is telcoA, I
> >   ; can view [5]www6.domain.com but not
> [6]www2.domain.com.
&gt; >   ; Do you think both telco is not allowing other
> network? bgp?
> >   ; Is their a way to reroute lets say if someone
&gt; try to visit
>  ; [7]www2.domain.com, it will use telcoA gateway
> and [8]www6.domain.com
&gt; >   ; will use telcoB?
&gt; _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> pluglists.linux.org.ph">pluglists.linux.org.ph (#PLUG irc.free.net.ph)
&gt; Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
>;



   ;  ____________________________________________________________________________________
Never miss a thing.&nbsp; Make Yahoo your home page.
http://www.yahoo.com/r/hs
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
pluglists.linux.org.ph">pluglists.linux.org.ph (#PLUG irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph



--
"And a rock feels no pain,
and an island never cries";
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )