troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

phyint refuses interface name for vlan (linux) #160

Closed noci2012 closed 3 years ago

noci2012 commented 3 years ago

A few config lines like: disable-vifs phyint vlan4 enable altnet 177.0.0.0/8 ... Fails with the error: Cannot find all required phyint interfaces, exiting.

Setting the Ip address of the interface there gives: disable-vifs phyint 10.10.55.39 enable altnet 177.0.0.0/8 ... VIF #0: Installing vlan4 (10.10.55.39 on subnet 10.10.48/21) rate 0

The only problem here is vlan4 obtains it's address through DHCP, so no guarantees there. (vlan4 is a 802.1q vlan with id 4 on an underlying ethernet adapter)

OS is: Linux v 5.4.38, gentoo up to date with all current packages.

troglobit commented 3 years ago

Hi,

pimd currently enumerates multicast VIFs (virtual interfaces) in the same way on all operating systems, by interface address. So if the interface doesn't have an address (yet) when pimd starts, it will be skipped. This is true both for the latest official release and the yet-to-be-released code on master.

On Linux-based operating systems we can enumerate VIFs using the interface index (ifindex), but that has not been implemented yet. Your options are: 1) fix limitation in pimd by implementing support for VIFF_USE_IFINDEX (see for instance SMCRoute), or 2) delay the start of pimd until all relevant interfaces have an IP address.

Best regards /Joachim

troglobit commented 3 years ago

No response within a reasonable time frame, closing due to inactivity.

noci2012 commented 3 years ago

I gave up on pimd and moved to mcproxy. (probably a better fit anyway). Apearantly i missed mail on this. (going through notification made this one appear).