Hello,
I''m trying to get started with "tc", using some online
examples, but the
first line already returns an error.
=$ tc qdisc add dev eth0 root handle 10:0 cbq bandwidth 10 Mbit avpkt 1000
RTNETLINK answers: Invalid argument
=
What could be wrong? There is a eth0 interface up and running.
=$ ip link
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:e0:29:64:bf:87 brd ff:ff:ff:ff:ff:ff
=
I use RedHat 6.2 out of the box (kernel 2.2.14), have installed
iproute2-ss990630.
I don''t mind a RTFM, it would be fine if someone could point me to the
right docs (except for the source code :-).
Thanks,
Tung
On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote:> Hello, > > I''m trying to get started with "tc", using some online examples, but the > first line already returns an error.You need lots of stuff enabled in the kernel. Perhaps the HOWTO should feature a tiny chapter dedicated to this? For you, this means that you need to recompile the kernel with QoS and advanced routing features turned on. I asked Alan Cox of RedHat to enable these features in the RedHat 7.0 kernel, and I think he did it. Regards, bert hubert -- PowerDNS Versatile DNS Services Trilab The Technology People ''SYN! .. SYN|ACK! .. ACK!'' - the mating call of the internet
Thank you, I solved the problem after recompiling the kernel with all those features turned on. And there was a small type indeed: 10 Mbit should be 10Mbit. Thanks again for the help. On Fri, 13 Oct 2000, bert hubert wrote:> On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote: > > Hello, > > > > I''m trying to get started with "tc", using some online examples, but the > > first line already returns an error. > > You need lots of stuff enabled in the kernel. Perhaps the HOWTO should > feature a tiny chapter dedicated to this? > > For you, this means that you need to recompile the kernel with QoS and > advanced routing features turned on. I asked Alan Cox of RedHat to enable > these features in the RedHat 7.0 kernel, and I think he did it. > >