troglobit / smcroute

Static multicast routing for UNIX
https://troglobit.com/projects/smcroute/
GNU General Public License v2.0
242 stars 62 forks source link

How to use veth pair interface for test? #182

Closed dingrui37 closed 1 year ago

dingrui37 commented 1 year ago

I add a pair of veth(vethHR<--->vethRH) and set vethRH to another netns,then use smcroutectl to add multicast route, but it does work, why?

ubuntu@OptiPlex-3000:~$ sudo smcroutectl add vethHR 239.0.10.1 vethH1
smcroutectl: ipc: mroute: inbound vethHR is not a known phyint
troglobit commented 1 year ago

Works for me, I use veth pairs in the SMCRoute test suite. Maybe you could share with us how you set it all up? I assume you've set IP addresses on all interfaces correctly?