Hi, I disable CONFIG_IP_ROUTE_MULTIPATH_CACHED=n and all works fine... Em Sex, 2006-07-21 às 16:12 -0300, rejaine@bhz.jamef.com.br escreveu:
Hi list,
What's wrong whith this script above?
It's works fine with Suse Linux 9.0 (kernel 2.4) but not working on Suse 10 (kernel 2.6)
I'm use this script to load balance bethwen two ISP providers
#!/bin/bash #eth1 = provider1 (default) #eth2 = provider2
# Resetando tabelas de rotas, padrao do sistema 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
#Setando variaveis export IPD_DEV=eth1 export IPD_IP="`ifconfig $IPD_DEV | grep 'Bcast:' | cut -f2 -d: | cut -f1 -d' '`" export IPD_GW="XXX.XXX.XXX.XXX" export IPD_NET="$IPD_IP/26" echo "DEV=$IPD_DEV IP=$IPD_IP GW=$IPD_GW NET=$IPD_NET" export VLX_DEV=eth2 export VLX_IP="`ifconfig $VLX_DEV | grep 'Bcast:' | cut -f2 -d: | cut -f1 -d' '`" export VLX_GW="XXX.XXX.XXX.XXX" export VLX_NET="$VLX_GW/32" echo "DEV=$VLX_DEV IP=$VLX_IP GW=$VLX_GW NET=$VLX_NET"
#limpando rotas default route del -net default gw $IPD_GW route del -net default gw $VLX_GW
#Removendo deteccao de pacotes marcianos for eee in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $eee done cat /proc/sys/net/ipv4/conf/*/rp_filter
#load balancing ip rule del fwmark 3 ip rule add fwmark 3 lookup 30 prio 30 ip route add default table 30 \ nexthop via $VLX_GW dev $VLX_DEV weight 4 \ nexthop via $IPD_GW dev $IPD_DEV weight 1
#adicionando regras e rotas para tabelas de roteamento ip rule del from $IPD_IP ip rule del from $VLX_IP ip rule add prio 10 from $IPD_IP table 10 ip route add default via $IPD_GW dev $IPD_DEV src $IPD_IP proto static table 10 ip rule add prio 11 from $VLX_IP table 11 ip route add default via $VLX_GW dev $VLX_DEV src $VLX_IP proto static table 11
#adicionando routa default ip route add default via $IPD_GW
ip route flush cache route -n
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com