All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: Can't use two uplinks on a linux box
@ 2001-12-21  6:02 Lee, Myoung Ho
  2001-12-21 22:19 ` Jerome Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Lee, Myoung Ho @ 2001-12-21  6:02 UTC (permalink / raw)
  To: lartc


There are three NICs on my linux(kernel 2.4.13), two of
them are for adsl line(two uplinks) and the other is for NAT.

Here is my network.


 +-------+                      +---------+
 |   ISP    |                      |   ISP      |
 +-------+                      +---------+
10.10.10.254                      20.20.20.254
       \                                   /
         \                               /
 ppp0: 10.10.10.1           ppp1: 20.20.20.1
                 +------------+
                 |    Linux       |
                 +------------+
                eth2: 172.31.0.1/16

and I tried as:
#  ip  route  add  10.10.10.254  dev ppp0   table 200
#  ip  route  add   default   via  10.10.10.254  dev ppp0  table 200

#  ip  route  add  20.20.20.254  dev ppp1   table 100
#  ip  route  add   default   via  20.20.20.254  dev ppp1  table 100

#  ip route add 10.10.10.254   src 10.10.10.1  dev ppp0
RTNETLINK answers: File  exists                    --->  error 1
#  ip route add 20.20.20.254   src 20.20.20.1  dev ppp1
RTNETLINK answers: File  exists

#  ip  route add  default scope global   nexthop  via 10.10.10.254  nexthop
via 20.20.20.254
RTNETLINK answers: Network is unreachable   ---->  error 2

Why the second error is occured?

Here is my route table;

# ip route show
10.10.10.254   dev ppp0  proto  kernel  scope link  src 10.10.10.1
20.20.20.254  dev  ppp1  proto kernel  scope  link   src 20.20.20.1
172.31.0.0/16  dev  eth2   proto kernel   scope link  src  172.31.0.1
127.0.0.0/8   dev  lo  scope link
default  via  10.10.10.254   dev ppp0

Why I can't set up equal cost multipath default route?




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

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

* RE: [LARTC] Re: Can't use two uplinks on a linux box
  2001-12-21  6:02 [LARTC] Re: Can't use two uplinks on a linux box Lee, Myoung Ho
@ 2001-12-21 22:19 ` Jerome Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Jerome Petazzoni @ 2001-12-21 22:19 UTC (permalink / raw)
  To: lartc


> Here is my network.
> 
> 
>  +-------+                      +---------+
>  |  ISP  |                      |   ISP   |
>  +-------+                      +---------+
> 10.10.10.254                      20.20.20.254
>        \                                   /
>          \                               /
>  ppp0: 10.10.10.1           ppp1: 20.20.20.1
>                  +------------+
>                  |   Linux    |
>                  +------------+
>                 eth2: 172.31.0.1/16

> Why I can't set up equal cost multipath default route?

you can't without special arrangements with the ISPs.

IMHO, if you want to do some kind of load balancing, 
you should do some SNAT balancing. 

Jerome Petazzoni <skaya at enix dot org>
--
'They come back to the mountains to die,' said the King.
'They live in Ankh-Morpork.'
(The Fifth Elephant)


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

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

end of thread, other threads:[~2001-12-21 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-21  6:02 [LARTC] Re: Can't use two uplinks on a linux box Lee, Myoung Ho
2001-12-21 22:19 ` Jerome Petazzoni

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.