LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-27-2008, 10:10 PM   #1
linwenyuan
LQ Newbie
 
Registered: Sep 2006
Posts: 27

Rep: Reputation: 15
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter traffic between computers same subnet matters Slackware 9 10-19-2007 03:42 AM
How to filter traffic? OdinnBurkni Linux - Networking 1 08-11-2007 06:30 AM
tc traffic control tc traffic control Linux QoS control tool(noob help) inv|s|ble Linux - General 1 07-26-2007 12:12 PM
Anyone know if IPCOPS can filter outbound traffic? lumix Linux - Security 1 03-25-2007 02:23 PM
can't filter traffic of vmware guest os xadian Linux - Networking 2 08-18-2005 05:50 PM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration