Skip to contentSkip to conversation

Bandwidth limiting problem

LARTC Daniel Bergqvist [email protected] 1 participant 1 message Oct 17, 2000

lore
Share & tools
lore

Daniel Bergqvist [email protected]

author
#0 lore raw

<PRE>Hi!

Please post the other tc commands too, so I may test it.

Regards,
Daniel

&gt;<i> -----Ursprungligt meddelande-----
</I>&gt;<i> Från: <A HREF="mailto:[email protected]">[email protected]</A> </I>&gt;<i> [mailto:<A HREF="mailto:[email protected]">[email protected]</A>]För Fredrik Rambris </I>&gt;<i> Skickat: Tuesday, October 17, 2000 2:04 PM
</I>&gt;<i> Till: <A HREF="mailto:[email protected]">[email protected]</A>
</I>&gt;<i> Ämne: [LARTC] Bandwidth limiting problem
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Hi!
</I>&gt;<i>
</I>&gt;<i> I'm trying to limit the access to and from a 2MBit leased line to a
</I>&gt;<i> total of 128kbit (up+down must not exceed 128kbit).
</I>&gt;<i>
</I>&gt;<i> eth0 is connected to our lan with 100MBit
</I>&gt;<i> eth1 is connected to Internet via a router
</I>&gt;<i>
</I>&gt;<i> I've tried modifying the examples in the howto and it succeeds up to the
</I>&gt;<i> filter definition where I get an error.
</I>&gt;<i>
</I>&gt;<i> tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip \
</I>&gt;<i> dst 192.168.3.0/24 flowid 10:100
</I>&gt;<i>
</I>&gt;<i> gives
</I>&gt;<i>
</I>&gt;<i> RTNETLINK answers: Ogiltigt argument
</I>&gt;<i>
</I>&gt;<i> (Ogiltigt argument = Invalid argument)
</I>&gt;<i>
</I>&gt;<i> This should be a real easy one. Only one class (the whole local network)
</I>&gt;<i> should only get access to 128kbit of the 2Mbit.
</I>&gt;<i>
</I>&gt;<i> Anyone have some idea of what I could be doing wrong?
</I>&gt;<i>
</I>&gt;<i> / Fredrik Rambris
</I>&gt;<i> --
</I>&gt;<i> Admera Solution Provider AB
</I>&gt;<i> Tel: 0733-850 814
</I>&gt;<i> Position: 55°36´13N 13°03´36E
</I>

</PRE>