Skip to contentSkip to conversation

Problems whit iproute

LARTC Passadore Mauro 1 participant 1 message Nov 7, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

I have a problem with tc:
I run this script:

#!/bin/sh
bandadKbit

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth $banda avpkt 1000 cell 8 tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth $banda rate 64kbit maxburst 20 avpkt 500
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth $banda rate 64kbit maxburst 20 avpkt 100
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth $banda rate 16kbit maxburst 20 avpkt 1500
tc qdisc add dev eth0 parent 1:3 handle 30: sfq
tc qdisc add dev eth0 parent 1:4 handle 40: sfq
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 1:3
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x00 0xff flowid 1:4

the probelm is that this configuration seems only to be applied to loacally generated traffic, but the packets received by my linux box that have to be forwarded are not matched by any filter. Do you have any idea about wich could be the problem?

Thanks

Mauro
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/