Skip to contentSkip to conversation

Help on multipath

LARTC Lasse B. Jensen 1 participant 1 message Sep 17, 2003

lore
Share & tools
lore
#0 lore raw

hey all

I have a setup with 4 adsl lines with gw 192.168.1.1-4 connected to a switch and then to eth1 i my linux box (ip 192.168.1.10) currently i mark connection via iptables and via:

ip rule add fwmark 1 table m1
ip rule add fwmark 2 table m2

i send connection to the 2 tables. My problem is now that i would like to do something like this:

ip route add default table m1 via 192.168.1.1 dev eth1

this part works fine the next doesnt

ip route add default table m2 \

    nexthop via 192.168.1.2 dev eth1 \
    nexthop via 192.168.1.3 dev eth1 \
    nexthop via 192.168.1.4 dev eth1

Can anyone help me the erro message is: RTNETLINK answers: Invalid argument

Lasse B. Jensen
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/