hi all,

Newibe to tc and cbq....

i have a linux (rh9) machine having one ethernet (eth0-public ip) to
internet  and second int (eth1) private ip ,to which all my workstation
connects.

scenario:

--|eth0------Linux Server-------eth1|--192.168.2.11

i have used the following commands and my client 192.168.2.11 is limited
it's downlink to 96Kbit and it works great. now i want 192.168.2.11 not to
upload to outside world crossing 32Kbits. how do i do this?.



script that works for only downloads.
---

tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000

tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 10Mbit rate
96kbit allot 1514 weight 10kbit prio 6 maxburst 20 avpkt 1000 bounded

tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15

tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip dst
192.168.2.11 flowid 10:100

tc -d qdisc
---------


Thanks in ADv...
Paras.



_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to