[LARTC] IFB & 802.1q

Saioa Arrizabalaga sa.foroak at gmail.com
Thu May 31 16:59:50 CEST 2007


Hi,
>
> ip link set up dev ifb0
>
> tc qdisc add dev ifb0 root handle 1: htb default 3
> tc class add dev ifb0 parent 1: classid 1:1 htb rate 2000kbit quantum
> 1514
> tc class add dev ifb0 parent 1:1 classid 1:2 htb rate 1000kbit ceil
> 2000kbit quantum 1514
> tc class add dev ifb0 parent 1:1 classid 1:3 htb rate 1000kbit ceil
> 2000kbit quantum 1514
>
> tc filter add dev ifb0 parent 1: protocol ip priority 10 u32 match ip
> sport 80 0xffff flowid 1:2

Try with "protocol 802.1q" instead of "protocol ip" in the filter:

tc filter add dev ifb0 parent 1: protocol 802.1q priority 10 u32 match
ip sport 80 0xffff flowid 1:2

I had a similar problem and that worked for me. These posts may be useful:
http://www.mail-archive.com/lartc@mailman.ds9a.nl/msg10132.html
http://www.mail-archive.com/lartc@mailman.ds9a.nl/msg15219.html
http://www.mail-archive.com/lartc@mailman.ds9a.nl/msg10726.html

Regards,
-- 
Saioa Arrizabalaga
Telecommunication Engineer
CEIT
San Sebastian, Spain


More information about the LARTC mailing list