All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Can I do this?
@ 2004-09-08 22:16 Xiskator
  0 siblings, 0 replies; only message in thread
From: Xiskator @ 2004-09-08 22:16 UTC (permalink / raw)
  To: lartc

Hello, LARTC!

I've been having troubles with load balance with ip + fwmark. I was
wondering if these points are mandatory for this scheme to work:

1. Is there any problem if the linux gateway has a default gateway? Do
I have to remove it?

2. In the scenario with 4 NICs, one routing table each, and another
routing table doing load balance, Do the tables that imply routes that
are being used by the load balance routing table have to be removed?

p.e. :
 
echo 255  local > /etc/iproute2/rt_tables
echo 254  main  >> /etc/iproute2/rt_tables
echo 253  default >> /etc/iproute2/rt_tables
echo 0    unspec >>  /etc/iproute2/rt_tables
echo 200 balanceo2 >> /etc/iproute2/rt_tables
echo 201 cable >> /etc/iproute2/rt_tables
echo 202 cable2 >> /etc/iproute2/rt_tables


 ip route add default proto static via $GW dev eth0 src $IP1 table cable
 ip route add default proto static via $GW2 dev eth1 src $IP2 table cable2

 ip route add table balanceo2 default proto static \
        nexthop via $GW   dev eth0 weight 1 \
        nexthop via $GW2  dev eth1 weight 1 \

3. A final aclaration, the use of every link at the same time has been
achieved using routing tables cable and cable2 and packet marking.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-08 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08 22:16 [LARTC] Can I do this? Xiskator

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.