On Thursday 15 May 2003 20:27, Tester wrote: > Hi there. > > I got another problem now. > I got a linux router with 4 network interfaces on whose i do traffic > shaping with tc tool. > I'm constantly changing classes, filters and such. The need to constantly > change them will remain even after i finish testing all posibilities. > All works fine until the router doesn't get rebooted when i loose all my tc > settings. After it comes back i have to make all the changes again and it's > REALLY annoying to do so. (You try to reconstruct 50 or more lines of > commands in the specific order ;-) ) > > A simular problem i encontered with iptables, but I solved it with crontab > and iptables-save/restore. > Is there a simular solution for tc? No. > How do you cope with this problem? Scripting. > One option would be to have a script and constantly change what i do with > tc in it to so after a reboot it would come back. But his way i would > constantly have to worry about sychronizing the script with the actual > changes i make and double my efforts. > > Please help me. I don't have a real solution. I have a perl script that can discover a htb setup. That can be used to recontruct the commands. But why don't you create a script that you each adapt and execute? So you can rerun it if your box reboots. Stef -- stef.coene@xxxxxxxxx "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net