RE: Unable to delete qdisc / class

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanx, but this is what I get:

sh-2.04# tc qdisc del dev eth0 root handle 22:
RTNETLINK answers: Invalid argument


So then I did:
sh-2.04# tc qdisc del dev eth0 root help
Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
       [ handle QHANDLE ] [ root | ingress | parent CLASSID ]
       [ estimator INTERVAL TIME_CONSTANT ]
       [ [ QDISC_KIND ] [ help | OPTIONS ] ]

       tc qdisc show [ dev STRING ] [ingress]
Where:
QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. }
OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help


And I saw that handle is shown before root, so I tried:

sh-2.04# tc qdisc del dev eth0 handle 22: root
RTNETLINK answers: Invalid argument

It's about to drive me mad :(

Serge.

-----Original Message-----
From: Stef Coene [mailto:stef.coene@docum.org]
Sent: Wednesday, December 11, 2002 6:54 PM
To: Serge Maandag; lartc@mailman.ds9a.nl
Subject: Re:  Unable to delete qdisc / class


On Wednesday 11 December 2002 13:50, Serge Maandag wrote:
> Dear list,
>
> I have setup a qdisc that I'd like to remove, but somehow it seems
> impossible.
>
> -----------------
> Output of show:
>
> sh-2.04# tc -d qdisc show
> qdisc cbq 22: dev eth0 rate 100Mbit cell 8b mpu 64b (bounded,isolated)
> prio no-transmit/8 weight 100Mbit allot 1514b
> level 0 ewma 5 avpkt 1000b maxidle 1us
>
> sh-2.04# tc -d class show dev eth0
> class cbq 22: root rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio
> no-transmit/8 weight 100Mbit allot 1514b
> level 0 ewma 5 avpkt 1000b maxidle 1us
>
> sh-2.04# tc -d filter show dev eth0
> <nothing>
> -----------------
>
> If I do "tc qdisc del dev eth0 root" it says "RTNETLINK answers: No such
> file or directory".
Mhh.  This should work.  
Try this :
tc qdisc del dev eth0 root handle 22:

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux