Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I add 50000 rules to routes by "route add ** " command, I want to know, does this make the route slow ?

Actually, I have 50000 rules and these rules are dynamic, I can add/delete some rules at any time. Is this possible to loadbalance ?

share|improve this question
    
Uhm... is this a real question? 50.000 static routes? Really?.. –  pauska Sep 29 '10 at 2:51
    
How many interface, both real and virtual, does this machine have? –  pjz Sep 29 '10 at 3:19
    
2 interface, this machine is a gateway server. –  larry Sep 29 '10 at 3:28
    
Are you talking about routes, or firewall rules? –  Zoredache Sep 29 '10 at 5:30
    
just routes, i need to forward –  larry Sep 29 '10 at 6:00
add comment

1 Answer 1

up vote 1 down vote accepted

I don't think it will make it slow, since BGP4 on linux (using quagga) does the same thing. If you get the global routing table, it inserts all known routes (couple hundred thousand) in the kernel routing table. But unless you are using a routing protocol (BGP, OSPF, etc), why do you have the need for 50k routes in your routing table?

share|improve this answer
    
Thank you! because it's the business thing. that's to say, the target ip i need to forward has no rule. –  larry Sep 29 '10 at 8:40
    
And I am not familiar with BGP :(, can you give me a simple description ? thanks again! –  larry Sep 29 '10 at 8:54
    
@sharp I suggest you look up BGP on wikipedia. Here, I'll do it for you: en.wikipedia.org/wiki/Bgp –  Tom O'Connor Sep 29 '10 at 9:27
    
I still don't understand what the "business thing" is and why you need 50k routes in your routing table? –  Wouter de Bie Sep 29 '10 at 18:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.