From mboxrd@z Thu Jan 1 00:00:00 1970 From: Isak Badenhorst Date: Mon, 22 Apr 2002 18:57:12 +0000 Subject: [LARTC] Shaping Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi all I am trying to shape the e-mail going out on my network. When i send some outgoing mail it just eats up all bandwidth available. I would appreciate some help. I have a 128kbit link to my provider. tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt 1000 tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit rate 128kbit allot 1514 maxburst 20 avpkt 1000 isolated bounded prio 3 tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 128kbit allot 1514 avpkt 1000 tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 128kbit rate 16kbit weight 4 allot 1514 maxburst 20 avpkt 1000 tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 128kbit rate 112kbit weight 12 allot 1514 maxburst 20 avpkt 1000 tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 10:2 tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip dport 25 0xffff flowid 20:10 tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip src 0.0.0.0/32 flowid 20:20 Any help would be appreciated. Thanks Isak _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/