Skip to contentSkip to conversation

lartc on bridge, help

LARTC hiphin 2 participants 2 messages Feb 18, 2005

lore
Share & tools
lore

hiphin

author
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 5 lines · On Fri, 18 Feb 2005 18:05:22 +0100 "hiphin" <[email protected]> wrote:

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,

br0 is only used for local traffic, not bridged traffic and doesn't have a queue (normally).

Traffic that goes through the bridge needs to be controlled on the output bound device (wlan0) not the local bridge device (br0). If you want to get advanced you can also control it on the inbound side but it is harder.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/