Solved

tc <class|filter> del PROBLEM

Posted on 2004-04-23
3
353 Views
Last Modified: 2010-03-17
hi u,

The problem is that I can't del a single row from the configuration of 'tc'. When I add multiple filters
an example:
---------------------
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 1.1.1.1 flowid 1:10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 2.2.2.2 flowid 1:20
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 3.3.3.3 flowid 1:30

and after that if I try to del only one of these filters
example:
-----------------
tc filter del dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 1.1.1.1 flowid 1:10
 - they all are gone from the running config :( (tc filter show dev eth0 -> outputs nothing)

So, if someone can help me and tell me how I can del only one row, I'll be very happy.
0
Comment
Question by:gottin
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 50 total points
ID: 10900531
I thint you problem is you are deleting the parent id. Have a look at
http://www.knowplace.org/shaper/examples.html
0
 

Author Comment

by:gottin
ID: 10911202
owensleftfoot, 10x

I understood how to del a single row of the classes, but I still can't del a single filter :(. Can U help me?
C this:
--------------------------------------------------------------------
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 1.1.1.1 flowid 1:11
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 2.2.2.2 flowid 1:12
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 3.3.3.3 flowid 1:13

in this example is there a command to del only the filter for "ip dst 2.2.2.2" ?
(tc filter del dev eth0 protocol ip prio 100 u32 match ip dst 2.2.2.2 -> doesn't go. It dels all the filters for dev eth0)
0
 

Author Comment

by:gottin
ID: 10911207
I browsed http://www.knowplace.org/shaper/examples.html, but couldn't find the necessary information.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question