From: "Alexandru Coseru" Date: Sun, 04 May 2003 22:41:04 +0000 Subject: [LARTC] Script problem MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0017_01C312A7.63EE5CF0" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C312A7.63EE5CF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can somebody tell me what's wrong in this script? I'm a begginer in = traffic shaping and I can't figure it out #!/bin/sh =20 DEV=3D"dev eth1" =20 tc qdisc del $DEV root tc qdisc add $DEV root handle 10: prio tc qdisc add $DEV parent 10:1 handle 20: est 1sec 8sec bfifo tc qdisc add $DEV parent 10:2 handle 30: est 1sec 8sec bfifo tc qdisc add $DEV parent 10:3 handle 40: est 1sec 8sec bfifo =20 tc filter add $DEV parent 10: protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 10:1 tc filter add $DEV parent 10: protocol ip prio 1 u32 match ip tos 0x06 0xff flowid 10:2 tc filter add $DEV parent 10: protocol ip prio 1 u32 match ip tos 0x0c 0xff flowid 10:3 = Thanks a lot = alexCOS ------=_NextPart_000_0017_01C312A7.63EE5CF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Can somebody tell me what's wrong in = this=20 script?   I'm a begginer in traffic shaping and I can't figure = it=20 out
 
#!/bin/sh
 
DEV=3D"dev eth1"
 
tc qdisc del = $DEV=20 root
tc qdisc add $DEV root handle 10: prio
tc qdisc add $DEV = parent 10:1=20 handle 20: est 1sec 8sec
bfifo
tc qdisc add $DEV parent 10:2 = handle 30:=20 est 1sec 8sec
bfifo
tc qdisc add $DEV parent 10:3 handle 40: est = 1sec=20 8sec
bfifo
 
tc filter add $DEV parent 10: protocol ip = prio 1=20 u32
match ip tos 0x10 0xff flowid 10:1
tc filter add $DEV parent = 10:=20 protocol ip prio 1 u32
match ip tos 0x06 0xff flowid 10:2
tc = filter add=20 $DEV parent 10: protocol ip prio 1 u32
match ip tos 0x0c 0xff flowid=20 10:3
 
 
 
 
 
 
 
 
 
 
       =20             =    =20             =    =20             =    =20             =    =20             =    =20             =    =20 Thanks a lot
       =20             =    =20             =    =20             =    =20             =    =20             =    =20             =    =20 alexCOS
------=_NextPart_000_0017_01C312A7.63EE5CF0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/