Re: Bandwidth 'depredation' revisited

From: Anders Peter Fugmann (afu@fugmann.dhs.org)
Date: Tue Jun 11 2002 - 13:25:55 EST


DervishD wrote:
> Hi Anders :)
>
>>tc qdisc add dev eth0 handle ffff: ingress
>>tc filter add dev etc0 parent ffff: protocol ip prio 50 u32 \
>> match ip src 0.0.0.0/0 police \
>> rate 232kbit burst 10k drop flowid :1
>
> OK. Maybe a stupid question: will I need to mark the packages
> with iptables in order to get them thru de ingress scheduler :?
>
No. You can, but dont need to. The above lines match anything comming from eth0, and
shapes it to 232kbit. Tweak the value to suit your needs.

Anders Fugmann

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:23 EST