Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I use Linux Debian as a router for a school project with Quagga/Zebra. I need to make loadbalancing between routes of the same costs. It seems to work but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3

    Disable ip route caching


    Hello,

    I use Linux Debian as a router for a school project with Quagga/Zebra. I need to make loadbalancing between routes of the same costs.

    It seems to work but the Linux route caching mecanism avoid load balancing to work properly. I can flush manualy the route cache with a while 1 bash script calling ip route flush cache but I'm looking for the good way to do that.

    Is there any option, in the kernel configuration I hope, ?
    If not what .c file is concerned, maybe I could try to disable route caching by deleting some code ?

    Thanks in advance for your help,

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    deleting code is probably not the best route (hehe get it?).

    check under:
    /proc/sys/net/ipv4/route/

    maybe min_delay...
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3
    Thanks for your answer.
    Theses parameters improves route caching timers but it's not perfect. I need to completly disable route caching.

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    How about this then:
    Linux Advanced Routing & Traffic Control HOWTO

    see section 4.2.2, has link to a patch for loadbalancing.
    linux user # 503963

  5. #5
    Just Joined!
    Join Date
    Dec 2011
    Posts
    3
    Thanks a lot, I will try this solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •