PDA

View Full Version : Loading Balance


luizspies
2006-02-24, 08:24 AM CST
Hi everyone, i know itīs a well discuss subject.
I have a loading balance working pretty good
in my fedora core 3 in athlon64, i have my own scripts for networking
and itīs working on fedora 3, i use Julianīs anastov --> http://www.ssi.bg/~ja/.
I install the fedora core 4 on the same athlon64.
I download the latest version of kernel --> linux-2.6.15.4.tar.bz2
and i download the latest patch for Julianīs routes-2.6.14-12.diff The patch is known to work on Linux 2.6.14 - 2.6.15.
I follow this howto to make my network scripts and my iptables scripts http://www.ssi.bg/~ja/nano.txt.
Like i said in my fedora core 3 workīs real good.
But in my fedora core 4 not working no matter the kernel i try to use.
This is my table 222

---------------------------
ip rule add prio 222 table 222
ip route add default table 222 proto static nexthop via 10.0.2.1 dev eth4 nexthop via 10.0.4.1 dev eth2 nexthop via 10.0.1.1 dev eth1
---------------------------

the error i get is my server always use the last nexthop --> 10.0.1.1, if i delete this the system use -->10.0.4.1, so the system always use the last entry in my table 222.

Anyone have any idea whatīs the problem here?

Sorry about my poor english.

any help or ide will be great.

Luiz

luizspies
2006-03-02, 08:35 AM CST
No one has any idea?

paul matthijsse
2006-03-02, 02:06 PM CST
No one has any idea?No sorry. I even don't understand what "loading balance" is. Do you mean load-balancing? Or what? Can't help you.

luizspies
2006-03-02, 02:34 PM CST
Load-balancing, yes sorry about my english!
So, again if anyone ha any idea... please tell me!
thank's to all

mnisay
2006-03-03, 01:01 AM CST
what does

/etc/iproute2/rt_tables
/etc/iproute2/rt_tables.rt_config
route -n | grep U

say?

luizspies
2006-03-03, 08:15 AM CST
Answer the last question!

1- less /etc/iproute2/rt_tables
--------------------------------
#
# reserved values
#
#255 local
#254 main
#253 default
#0 unspec
#
# local
#
#1 inr.ruhep
---------------------------------

2- less /etc/iproute2/rt_tables.rt_config

---------------------------------
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
-----------------------------------

3- route -n | grep U

----------------------------------------------------------------------------
10.0.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth4
200.139.115.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
----------------------------------------------------------------------------

:)

luizspies
2006-03-05, 07:16 PM CST
so anyone ha any other idea about it?!
Because i'm realy think about downgrade my fedora to core 3 because in this version my load balancing work.
Thank's

luizspies
2006-03-06, 06:41 AM CST
Well, i solve the problem.
With the kernel default of fedora itīs working.
iptables iproute2 come with fedora, only working full features with the original kernel of fedora.
thankīs to all.