Can I do this?

Linux Advanced Routing and Traffic Control

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

 



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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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