On Tuesday 28 September 2004 08:57, Stephan M. Ott wrote:
> Hi folks,
>
> I'm trying to shape two clients in my LAN when accessing the internet.
> Actual situation is that EVERY traffic goes into 1:40, so the client
> which should fall into 1:30 does not get the lower uplink it should
> have, but the uplink defined for the client defined as 1:30
> When I disable the definition of 1:40, every traffic falls into 1:30
> (except for the traffic defined to be in 1:10 and 1:20, this works)
> As I'm somewhat new to this, I'm stuck and don't know what I have to
> change in order to make it work.


> Can someone help me out ? What goes wrong here ?
The iptables and tc numbers are hex, so try 0x8 and 0x128.

iptables -t mangle -A FORWARD -s 192.168.0.51/29 -j MARK --set-mark 0x8
iptables -t mangle -A FORWARD -s 192.168.0.55/29 -j MARK --set-mark 0x128
tc filter add dev $DEV parent 1:0 protocol ip prio 30 handle 0x8 fw flowid 
1:30
tc filter add dev $DEV parent 1:0 protocol ip prio 40 handle 0x128 fw flowid 
1:40

Stef

-- 
[EMAIL PROTECTED]
�"Using Linux as bandwidth manager"
� � �http://www.docum.org/
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to