All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Multiple ISP Provider on one interface
@ 2005-07-23 14:51 ZeuS SN
  2005-07-23 15:57 ` Peter Surda
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ZeuS SN @ 2005-07-23 14:51 UTC (permalink / raw)
  To: lartc

The problem is that I have only 2 ethernet adapters in my linux router, 
one of this adapter pluged to the LAN and the other is pluged to a HUB 
who have 2 routers DSL. Each DSL routers have an static ip and the 
solution that I found was creating an eth0 and eth0:1 but with this 
option I have any way to use the eth0:1 adapte...

Any one knows a solution for this ?

Regards.
                                                        
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Multiple ISP Provider on one interface
  2005-07-23 14:51 [LARTC] Multiple ISP Provider on one interface ZeuS SN
@ 2005-07-23 15:57 ` Peter Surda
  2005-07-23 17:09 ` ZeuS SN
  2005-07-23 19:08 ` Kajetan Staszkiewicz
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Surda @ 2005-07-23 15:57 UTC (permalink / raw)
  To: lartc

On Sat, 23 Jul 2005 15:51:43 +0100 ZeuS SN <zeus_securenet@hotmail.com> wrote:

>The problem is that I have only 2 ethernet adapters in my linux router,
>one of this adapter pluged to the LAN and the other is pluged to a HUB
>who have 2 routers DSL. Each DSL routers have an static ip and the
>solution that I found was creating an eth0 and eth0:1 but with this
>option I have any way to use the eth0:1 adapte...
You don't have to use eth0:1, it is actually considered obsolete since kernel
2.2. Use
ip addr add ip1/mask1 dev eth0
ip addr add ip2/mask2 dev eth0

As far as I know, modern distributions support this, although I am not sure
about the exact syntax in their configuration files. In Shurdix I do it like
this: http://docs.shurdix.org/shurdix:network_interfaces#ip

>Regards.
Yours sincerely,
Peter
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LARTC] Multiple ISP Provider on one interface
  2005-07-23 14:51 [LARTC] Multiple ISP Provider on one interface ZeuS SN
  2005-07-23 15:57 ` Peter Surda
@ 2005-07-23 17:09 ` ZeuS SN
  2005-07-23 19:08 ` Kajetan Staszkiewicz
  2 siblings, 0 replies; 4+ messages in thread
From: ZeuS SN @ 2005-07-23 17:09 UTC (permalink / raw)
  To: lartc

Ok. It works and now I don't have the problem with ip route and virtual 
eth, but now my problem continues, If a ping the first IP, who has the 
default gateway it works fine, but if I ping the second IP that not have 
gateway, the pakect arrives the machine, but not respond, because it 
don't know which route get.

Theres anyway to set the gateway for this second IP address ?

Thanks and Regards
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] Multiple ISP Provider on one interface
  2005-07-23 14:51 [LARTC] Multiple ISP Provider on one interface ZeuS SN
  2005-07-23 15:57 ` Peter Surda
  2005-07-23 17:09 ` ZeuS SN
@ 2005-07-23 19:08 ` Kajetan Staszkiewicz
  2 siblings, 0 replies; 4+ messages in thread
From: Kajetan Staszkiewicz @ 2005-07-23 19:08 UTC (permalink / raw)
  To: lartc

Dnia sobota, 23 lipca 2005 16:51, ZeuS SN napisa³(a): 
> The problem is that I have only 2 ethernet adapters in my linux router,
> one of this adapter pluged to the LAN and the other is pluged to a HUB
> who have 2 routers DSL. Each DSL routers have an static ip and the
> solution that I found was creating an eth0 and eth0:1 but with this
> option I have any way to use the eth0:1 adapte...
>
> Any one knows a solution for this ?

Multipatch routing probably won't work this way - at least I was unable to set 
up SNAT because booth gateways are on the same interface. However masquerade 
was working correctly, as it is choosing ip address to SNAT (AFAIK) after 
routing.

Another solution is to get a switch with 802.1q VLANs, and "divide" single 
network interface into many fully functional interfaces (fully functional 
means for me that you can use their names in iptables -o to choose proper 
SNAT address).

-- 
|      pozdrawiam      | powered by Slackware, Gentoo and FreeBSD |
| Kajetan Staszkiewicz | JID: vegeta@chrome.pl                    |
|        Vegeta        | http://kajtek.biezanow.net               |
+----------------------+------------------------------------------+
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-23 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-23 14:51 [LARTC] Multiple ISP Provider on one interface ZeuS SN
2005-07-23 15:57 ` Peter Surda
2005-07-23 17:09 ` ZeuS SN
2005-07-23 19:08 ` Kajetan Staszkiewicz

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.