I'm new on this mailing list, reading it for last 4 weeks, ...
Need help please...
I want to implement tc rules on br0 witch is build of wlan0, wlan0wds0, wlan0wds1? I did something but it doesn't do good job, it doesn't give constant flow ... any idea, please if someone already have experiance...
OS: Suse 9.0
myshaper ---------------------------------------------------------------------------------------------
#! /bin/sh
. /etc/rc.status
rc_reset
case "$1" in
stop) tc qdisc del dev br0 root rc_status -v ;;
*)
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb r2q 1
tc class add dev br0 parent 1: classid 1:1 htb rate 230kbit
tc class add dev br0 parent 1:1 classid 1:10 htb rate 50kbit ceil 128kbit burst 20k
tc class add dev br0 parent 1:1 classid 1:11 htb rate 70kbit ceil 128kbit burst 20k
tc class add dev br0 parent 1:1 classid 1:12 htb rate 110kbit ceil 192kbit burst 20k
# class for wireless users
tc class add dev br0 parent 1:12 classid 1:21 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:22 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:23 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:24 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:25 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:26 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:27 htb rate 8kbit ceil 64kbit
tc class add dev br0 parent 1:12 classid 1:28 htb rate 8kbit ceil 64kbit
echo kreiram filtere
# filter networks
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.0.0/24 flowid 1:10
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.0/24 flowid 1:11
# filteri wireless users
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.2 flowid 1:21
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.3 flowid 1:22
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.4 flowid 1:23
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.5 flowid 1:24
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.6 flowid 1:25
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.7 flowid 1:26
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.8 flowid 1:27
tc filter add dev br0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.2.9 flowid 1:28
rc_status -v ;; esac
-----------------------------
regards
_______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/