Solved

tc <class|filter> del PROBLEM

Posted on 2004-04-23
3
350 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now