linux tc + contab

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi I have strange problem. 
  same traffic control rules when i started it manual they work OK,
but when i started it from crontab  / twice per day / doesn't work
correctly ... look like  delete rules doesn't work
  ... any ideas where to look for problem ?
i use debian sarge  Linux  2.6 kernel , 




#!/bin/bash

TC=/sbin/tc
DEV=eth1

echo "Delete all rules"
$TC qdisc del dev $DEV root
echo "Add new root rule"
$TC qdisc add dev $DEV root handle 1: htb default 101

echo "lavel I - main tc rules"
$TC class add dev $DEV parent 1: classid 1:2 htb rate 1mbit ceil 1mbit
  prio   3
$TC class add dev $DEV parent 1: classid 1:3 htb rate 1mbit ceil 1mbit prio   1
$TC class add dev $DEV parent 1: classid 1:4 htb rate 10mbit ceil
10mbit prio   4
$TC class add dev $DEV parent 1: classid 1:101 htb rate 1kbit ceil 1kbit prio 4
................................
.......................


Regards
emil
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux