pimd icon indicating copy to clipboard operation
pimd copied to clipboard

Dynamic add/remove interfaces

Open kuki21 opened this issue 12 years ago • 4 comments

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 ?

kuki21 avatar Mar 13 '13 13:03 kuki21

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! :)

troglobit avatar Mar 13 '13 19:03 troglobit

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.

troglobit avatar Jun 09 '13 22:06 troglobit

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.

timeos avatar Oct 03 '14 10:10 timeos

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.)

troglobit avatar Oct 06 '14 06:10 troglobit