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