From: "Cristiano Soares" Date: Thu, 08 Apr 2004 16:54:23 +0000 Subject: [LARTC] traffic shaping on single ip... Message-Id: <008d01c41d8a$26d19be0$a902a8c0@stillnicks> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_008A_01C41D70.FF8B04E0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_008A_01C41D70.FF8B04E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all. Im using the following CQB shaper to shape IP addresses: DEV=3Deth1 (internal eth) tc qdisc del dev $DEV root tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev $DEV parent 1: classid 1:1 cbq rate 256kbit allot 1500 = prio 5 bounded isolated tc class add dev $DEV parent 1: classid 1:2 cbq rate 512kbit allot 1500 = prio 5 bounded isolated tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.230 flowid 1:2 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.230 flowid 1:2 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.188 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.188 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.172 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.172 flowid 1:1 The thing is, i want to be able to shape inbound different from outbound = traffic. I use an ADSL line so, i need to shape up significantly lower = than down. Thanks a lot. And also, is there a better way to shape traffic like this? Thanks a = lot. Cristiano ------=_NextPart_000_008A_01C41D70.FF8B04E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all. Im using the following CQB = shaper to shape=20 IP addresses:
 
DEV=3Deth1 (internal eth)
 
tc qdisc del dev $DEV root
tc qdisc = add dev $DEV=20 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: classid = 1:1 cbq=20 rate 256kbit allot 1500 prio 5 bounded isolated
tc class add dev $DEV = parent=20 1: classid 1:2 cbq rate 512kbit allot 1500 prio 5 bounded = isolated
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.230 flowid 1:2
tc filter add dev $DEV = parent 1:=20 protocol ip prio 16 u32 match ip src 192.168.2.230 flowid = 1:2
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.188 flowid 1:1
tc filter add dev $DEV = parent 1:=20 protocol ip prio 16 u32 match ip src 192.168.2.188 flowid = 1:1
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.172 flowid 1:1
tc filter add dev $DEV = parent 1:=20 protocol ip prio 16 u32 match ip src 192.168.2.172 flowid = 1:1
 
The thing is, i want to be able to = shape inbound=20 different from outbound traffic. I use an ADSL line so, i need to shape = up=20 significantly lower than down. Thanks a lot.
And also, is there a better way to = shape traffic=20 like this? Thanks a lot.
 
Cristiano
------=_NextPart_000_008A_01C41D70.FF8B04E0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/