Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

tc <class|filter> del PROBLEM

Posted on 2004-04-23
3
Medium Priority
?
377 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

670 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