Dear members I''m new to this list and also new to tc command. I have a subnet with over 30 pc which have ip addresses from 172.16.1.1/16 range.I want that each computer in my subnet can work with internet with maximum 6k for download and maximum 6k for upload.when i run the following tc commands from my bridge the first pc works well but the second pc can not work with 6k and it has an almost dead connection with internet.I think somethings goes wrong because i want that each computer has 6k bandwith no all computer have 6 bandwith togeather...! can any one help me -------------------------------------------------------------------------------------- tc qdisc del dev eth0 root 2>/dev/null tc qdisc del dev eth1 root 2>/dev/null tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000 cell 8 tc qdisc add dev eth1 root handle 11: cbq bandwidth 100Mbit avpkt 1000 cell 8 tc class add dev eth0 parent 10:0 classid 10:3 cbq \ allot 1514 cell 8 maxburst 20 avpkt 1000 prio 3 \ bandwidth 48Kbit rate 48Kbit weight 1Kbit bounded tc qdisc add dev eth0 parent 10:3 sfq quantum 48Kbit tc filter dev eth0 parent 10:0 protocol ip prio 1 u32 flowid 10:3 \ match ip src 172.16.1.1/16 ---------------------------------------------------------------------------------------- --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today
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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/