netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* trouble setting default route for load-balancing routing tables
@ 2011-11-20  2:11 Lloyd Standish
  2011-11-20 14:16 ` Andrew Beverley
  0 siblings, 1 reply; 7+ messages in thread
From: Lloyd Standish @ 2011-11-20  2:11 UTC (permalink / raw)
  To: netfilter

Hi Everyone,

I'm configuring a load-balancing netfilter router.  It does round-robin load balancing over 2 external interfaces, eth0 and eth1.  The natted LAN is on eth4.  eth0 is attached to table T0, and eth1 uses table T1.

I am unable to add default routes to the routing tables T0 and T1.  Here is the output from my bash script that sets up the router:

+ ip route flush table T0
+ ip route add 192.168.100.0/24 dev eth0 src 192.168.100.10 table T0
+ ip route add default via 192.168.100.11 table T0
RTNETLINK answers: No such process

Even with the lack of default route for T0 and T1, the router appears to properly load-balance over the 2 outgoing interfaces (!)  However, it ignores my rules which should direct certain traffic over a particular interface.

After setting up the router, here is table main:

root@debiandesk2:/home/lloyd/data/traffic_shaping# ip route show table main
192.168.100.0/24 dev eth0  scope link  src 192.168.100.10
192.168.50.0/24 dev eth4  scope link  src 192.168.50.1
192.168.90.0/24 dev eth1  scope link  src 192.168.90.10
default
	nexthop via 192.168.100.11  dev eth0 weight 92
	nexthop via 192.168.90.1  dev eth1 weight 7


And here is table T0, devoid of a default route:

root@debiandesk2:/home/lloyd/data/traffic_shaping# ip route show table T0
192.168.100.0/24 dev eth0  scope link  src 192.168.100.10
192.168.50.0/24 dev eth4  scope link
127.0.0.0/8 dev lo  scope link

Let me know if any more info is needed to debug this.

Regards,
Lloyd

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-20 20:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-20  2:11 trouble setting default route for load-balancing routing tables Lloyd Standish
2011-11-20 14:16 ` Andrew Beverley
2011-11-20 14:53   ` Lloyd Standish
2011-11-20 15:10     ` Lloyd Standish
2011-11-20 20:34       ` Andrew Beverley
2011-11-20 20:57         ` Lloyd Standish
2011-11-20 20:32     ` Andrew Beverley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).