Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have several point to point connections and I’d like to use all of them as default gateways. I saw this link which explains how to do this using load balancing by calling ip route with a next hop definer, but when I run the command it says:

RTNETLINK: invalid argument.

I know about bonding, but I cannot use bonding in my scenario because it cannot be easily done for PPP connections.

Here is the command:

ip route add default scope global next hop via $P1 dev $IF1 weight 1 nexthop via $P2 dev $IF2 weight 1

Where $P1 is gateway address for ppp1 and $IF1 is pp1 and so forth. Here is the link.

my kernel is 2.6 and the document seems to indicate kernel version 2.2/2.4 could that be the reason?

share|improve this question
Would you mind posting the output of ip route show tables all and ip rule list? – Hauke Laging Feb 14 '13 at 2:46

You must log in to answer this question.

Browse other questions tagged .