Skip to contentSkip to conversation

simple (maybe idiot) question

LARTC Wingtung.Leung [email protected] 2 participants 3 messages Oct 13, 2000 – Oct 14, 2000

lore
Share & tools
lore

Wingtung.Leung [email protected]

author
#0 lore raw

<PRE>Hello,

I'm trying to get started with &quot;tc&quot;, 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: &lt;BROADCAST,MULTICAST,UP&gt; 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>

#1 lore raw

<PRE>On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote:
&gt;<i> Hello,
</I>&gt;<i>
</I>&gt;<i> I'm trying to get started with &quot;tc&quot;, using some online examples, but the </I>&gt;<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>
author
#2 lore raw
In reply to 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:

&gt;<i> On Fri, Oct 13, 2000 at 07:38:42PM +0200, Wingtung.Leung wrote:
</I>&gt;<i> &gt; Hello,
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; I'm trying to get started with &quot;tc&quot;, using some online examples, but the </I>&gt;<i> &gt; first line already returns an error.
</I>&gt;<i>
</I>&gt;<i> You need lots of stuff enabled in the kernel. Perhaps the HOWTO should </I>&gt;<i> feature a tiny chapter dedicated to this?
</I>&gt;<i>
</I>&gt;<i> For you, this means that you need to recompile the kernel with QoS and </I>&gt;<i> advanced routing features turned on. I asked Alan Cox of RedHat to enable </I>&gt;<i> these features in the RedHat 7.0 kernel, and I think he did it. </I>&gt;<i>
</I>&gt;<i>
</I>

</PRE>