From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omer suat Date: Tue, 23 Jul 2002 17:47:39 +0000 Subject: [LARTC] A filtering problem MIME-Version: 1 Content-Type: multipart/mixed; boundary="0-851835079-1027446459=:97158" Message-Id: List-Id: To: lartc@vger.kernel.org --0-851835079-1027446459=:97158 Content-Type: text/plain; charset=us-ascii Hi, I have the following problem. I have followed iproute2 manual, and try to fillter incoming traffic by using u32. But it seems the filtering is not working properly, all the packets are still going default class. # tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 # tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate 5Mbit prio 3 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded # tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 100Mbit rate 3Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded # tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500 # tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500 # tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.14/32 flowid 1:1 # tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.13/32 flowid 1:2 Both class 1 & 2 (1:1, 1:2) are not getting any traffic Is there any thing am I missing. Thanks in advance --------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better --0-851835079-1027446459=:97158 Content-Type: text/html; charset=us-ascii

Hi,

I have the following problem.

I have followed iproute2 manual, and try to fillter incoming traffic by using u32. But it seems the filtering is not working properly, all the packets are still going default class.

# tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8

# tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit  rate 5Mbit prio 3 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded

# tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 100Mbit  rate 3Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded

# tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500

# tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500

# tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.14/32 flowid 1:1

# tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.13/32 flowid 1:2

Both class 1 & 2 (1:1, 1:2) are not getting any traffic

Is there any thing am I missing.

Thanks in advance

 

 

 



Do You Yahoo!?
Yahoo! Health - Feel better, live better --0-851835079-1027446459=:97158-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/