LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Server keeps responding for a little while when virtual interface is brought down? (https://www.linuxquestions.org/questions/linux-networking-3/server-keeps-responding-for-a-little-while-when-virtual-interface-is-brought-down-461504/)

Asha Yarangatta 07-06-2006 09:56 AM

Server keeps responding for a little while when virtual interface is brought down?
 
When a virtual interface is brought down it makes a call to rt_cache_flush() with a -1 parameter which causes an up to <min_delay> delay before flushing all the routes. So, the server keeps responding for a little while after shuting down the interface. With a "real" interface, rt_cache_flush() gets called with a 0 parameter meaning that the routes get flushed immediately. I dont want the server to keep responding for a little while after shutting down the interface.

My questions are as follows:

1) Why rt_cache_flush() is called with a -1 parameter when virtual interface is brought down? Is this a bug or expected behavior?

3) Why the /proc/sys/net/ipv4/route/min_delay setting is by default set to 2?

3) When would we not want route flushes and route changes to take immediate effect?

Thanks,
Asha


All times are GMT -5. The time now is 06:47 AM.