

Ahh I see, I didn’t know what tc was and assumed it was a typo and ignored it. I searched for a bit for your specific problem and didn’t come up with much other than this:
You could also try
/usr/lib/networkd-dispatcher/routable.d/
Looks like you can also specify the scripts directoy with -S flag
https://manpages.ubuntu.com/manpages/noble/en/man8/networkd-dispatcher.8.html
My other thought is: maybe the location for the scripts is correct, but you’re having another issue thats causing the unknown state error?
You might also want to make sure all the required environment variables are set correctly?
Per the man page:
“Scripts are executed with some environment variables set.”
Sometimes ping won’t even help notice that though, I’ve had instances where I was trying to diagnose why a home network connection kept freezing, and when running ping, it would freeze but then continue after 10 seconds, without erroring out or giving the normal ‘destination host not found’ error, or having really high millisecond response time, etc. I finally had to start running it with timestamps so I could see when the connection was choking, and not updating the ping for 10 seconds at a time.