Correct way to configure tc rules?
OS: Ubuntu 24.04
I have searched this for a while and seems i can't get my search terms right.
Back when ifuo/down system worked custom scripts were put under '/etc/network/if-up.d' etc. Now ubuntu uses netplan. But where to put custom script? That would handle tc rules in my case.
/etc/networkd-dispatcher/routable.d was told by internet but that just trows error during boot; ERROR:Unknown state for interface.
lemmy_user_838586
in reply to Juntti • • •Disclaimer, I'm not in front of my computer to check, but it looks like its /etc/netplan/
netplan.readthedocs.io/en/stab…
Netplan tutorial
NetplanJuntti
in reply to lemmy_user_838586 • • •All i know now and looking more around; netplan way to use custom script when interface comes up is networkd-dispatcher way, that in Ubuntu 24.04 do not work.
lemmy_user_838586
in reply to Juntti • • •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
manpages.ubuntu.com/manpages/n…
My other thought is: maybe the location for the scripts is correct, but you're having another issue thats causing the unknown state error?
Ubuntu Manpage: networkd-dispatcher - Dispatcher service for systemd-networkd connection status changes
manpages.ubuntu.com