[LARTC] Script problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 
DEV="dev eth1"
 
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
 
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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux