Thread (12 messages) 12 messages, 5 authors, 2012-01-31

Re: increase the number of routing tables

From: Ben Greear <hidden>
Date: 2012-01-29 02:46:08

On 01/28/2012 06:41 PM, Eric Dumazet wrote:
Le samedi 28 janvier 2012 à 21:20 -0500, Simon Chen a écrit :
quoted
Hey folks,

To my limited knowledge, Linux currently supports 256 (255?) routing
tables defined in /etc/iproute2/rt_tables.

Is there a way to increase this number to something much larger? Are
there performance/scalability concerns there? I am trying to have
customized routing table for each IP address (using "ip rule add from
xxx table yyy"). I am not sure exactly how many IPs I'll handle, but
certainly more than 255...
Its is possible, but probably not scalable.
I've run with a few thousand routing tables and probably 5000 or so
rules.  It seems to run OK....
You really should not have too many "ip rule" entries, since they are
evaluated linearly.
For every packet, or maybe just until conn-track gets an entry
for the connection?

Thanks,
Ben


-- 
Ben Greear [off-list ref]
Candela Technologies Inc  http://www.candelatech.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help