Solved

tc <class|filter> del PROBLEM

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Only Allow Access to an HTTPS webpage via Squid Proxy 7 335
linux / python expert needed 3 93
OpenWrt 1 42
Set linux box as ip router 3 21
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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