LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   help!!! How to del filter for the traffic control? (https://www.linuxquestions.org/questions/linux-networking-3/help-how-to-del-filter-for-the-traffic-control-624357/)

linwenyuan 02-27-2008 09:10 PM

help!!! How to del filter for the traffic control?
 
i have set up the tc rules as flowing :
[root@RHEL4 ~]# tc qdisc add dev eth0 root handle 1: htb
[root@RHEL4 ~]# tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps
[root@RHEL4 ~]# tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50kbps ceil 100kbps prio 2
[root@RHEL4 ~]# tc filter add dev eth0 parent 1:0 protocol ip pref 3 u32 match ip dst 172.168.34.100/32 flowid 1:10

But i can't delete the filter:
[root@RHEL4 ~]# tc filter del dev eth0 parent 1:0 prio 2 u32
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
[root@RHEL4 ~]# tc filter list dev eth0
filter parent 1: protocol ip pref 3 u32
filter parent 1: protocol ip pref 3 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 3 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:10
match aca82264/ffffffff at 16
[root@RHEL4 ~]# tc filter del dev eth0 parent 1:0 prio 2 handle 800::800 u32
RTNETLINK answers: Invalid argument
We have an error talking to the kernel

i take the same shell cmd as this wetset (http://mailman.ds9a.nl/pipermail/lar...q4/014500.html) shows ,but it seems that the poster can make it ,but i can't .
Please help how to del the filter ,or i have to
#tc qdisc del dev eth0 root
and then set another rules again.
any answer would be appreciate very much .


All times are GMT -5. The time now is 07:43 PM.