Skip to contentSkip to conversation

Filters

LARTC Tilman Giese (Global View) 1 participant 1 message Aug 1, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

I have a short question about the use of filters.

I created two classes, one of them having subclasses via:

tc qdisc add dev eth1 root handle 1: cbq bandwidth 2MBit allot 1514 cell 8 avpkt 1000 mpu 64

tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 2MBit rate 2MBit allot 1514 cell 8 weight 200KBit prio 5 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:1 classid 1:2 cbq bandwidth 2MBit rate 500KBit allot 1514 cell 8 weight 50KBit prio 5 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:1 classid 1:3 cbq bandwidth 2MBit rate 500KBit allot 1514 cell 8 weight 50KBit prio 5 maxburst 20 avpkt 1000

tc qdisc add dev eth1 parent 1:2 handle 2: cbq bandwidth 1MBit allot 1514 cell 8 avpkt 1000 mpu 64
tc class add dev eth1 parent 2:0 classid 2:1 cbq bandwidth 1MBit rate 1MBit allot 1514 cell 8 weight 50KBit prio 5 maxburst 20 avpkt 1000 tc class add dev eth1 parent 2:1 classid 2:2 cbq bandwidth 1MBit rate 200KBit allot 1514 cell 8 weight 50KBit prio 5 maxburst 20 avpkt 1000

Then I added filters via

tc filter add dev eth1 parent 1:0 prio 5 protocol ip u32 tc filter add dev eth1 parent 2:0 prio 5 protocol ip u32

tc filter add dev eth1 parent 1:0 prio 5 protocol ip u32 match ip dst x.x.x.242 flowid 1:2
tc filter add dev eth1 parent 1:0 prio 5 protocol ip u32 match ip dst x.x.x.243 flowid 1:2
tc filter add dev eth1 parent 1:0 prio 5 protocol ip u32 match ip dst x.x.x.244 flowid 1:3
tc filter add dev eth1 parent 2:0 prio 5 protocol ip u32 match ip dst x.x.x.245 flowid 2:2

But tc class -s show dev eth1 only shows packages in classes 1:0, 1:1, 1:2, 1:3 and 2:0. The packages to x.x.x.245 are not classified for classid 2:2. What did I wrong?

Tilman

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