Solved

tc <class|filter> del PROBLEM

Posted on 2004-04-23
3
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

617 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