simple (maybe idiot) question
Wingtung.Leung [email protected]
<PRE>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
</PRE>
bert hubert [email protected]
<PRE>On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote:
><i> Hello,
</I>><i>
</I>><i> I'm trying to get started with "tc", using some online examples, but the </I>><i> first line already returns an error.
</I>
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
Signature · 6 lines
PowerDNS Versatile DNS Services Trilab The Technology People 'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet </PRE>
Wingtung.Leung [email protected]
<PRE>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:
><i> On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote:
</I>><i> > Hello,
</I>><i> >
</I>><i> > I'm trying to get started with "tc", using some online examples, but the </I>><i> > first line already returns an error.
</I>><i>
</I>><i> You need lots of stuff enabled in the kernel. Perhaps the HOWTO should </I>><i> feature a tiny chapter dedicated to this?
</I>><i>
</I>><i> For you, this means that you need to recompile the kernel with QoS and </I>><i> advanced routing features turned on. I asked Alan Cox of RedHat to enable </I>><i> these features in the RedHat 7.0 kernel, and I think he did it. </I>><i>
</I>><i>
</I>
</PRE>