[LARTC] Re: Can't use two uplinks on a linux box

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?






[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux