pimd
pimd copied to clipboard
Dynamic add/remove interfaces
Hi
I looking for a feature that allows me to add/remove int on the fly. I would like to connect by ppp to the server and enable IGPM on the ppp int without reloading all config and dropping existing flows. Is is possible to implement ?
Yes it's possible. On Linux one could use netlink to receive notification of interfaces going up/down and coming and going.
This is actually one of the things I'd like to see implemented in pimd (and mrouted and smcroute). However, currently I have little to no time to spend on it.
So patches are most welcome! :)
It's a little tricky though, since you need to enumerate the new interface with a "VIF" in the kernel. But since there's been no further activity in this issue I assume you've noticed this trickyness already.
maybe related question to this topic: sometimes happen, that pimd lost uplink interface to upstream PIM daemon. If I perform "pimd -r" I cant see that interface in Virtual Interface Table. I guessing that this could be caused by occasional interface flap (switch reboot/power outage) and after that flap interface is no longer present in that table. is this good explanation? i.e. if interface flaps, pimd lost information about it until I perform manual daemon restart.
Yep, sounds just like it.
An intermediate fix for this would be for pimd to notice interfaces coming and going and simply restart itself. (Not by default, but when a command line/config option is given.)