Dear all, I am a beginner on tc class. Now,I have some problems. In my Linux router,I had two interface(eth0,wan0), eth0 interface is an ethernet, wan0 interface used ppp protocol on E1 Line. Below were my setting: Linux Router PC1 <---->eth0 wan0<----->wan1 eth1<----->PC2 PC1 = 192.168.0.1 eth0 = 192.168.0.2 PC2 = 10.1.1.1 #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 100Mbit weight 10Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 #tc class add dev eth0 parent 1:1 classid 1:100 cbq bandwidth 100Mbit rate 128Kbit weight 10Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded #tc qdisc add dev eth0 parent 1:100 tbf rate 128Kbit buffer 10Kb/8 limit 15Kb mtu 1500 #tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.0.1 flowid 1:100 #tc qdisc add dev wan0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 #tc class add dev wan0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 #tc class add dev wan0 parent 1:1 classid 1:100 cbq bandwidth 100Mbit rate 128Kbit weight 10Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded #tc qdisc add dev wan0 parent 1:100 tbf rate 128Kbit buffer 10Kb/8 limit 15Kb mtu 1500 #tc filter add dev wan0 parent 1:0 protocol ip prio 100 u32 match ip dst 10.1.1.1 flowid 1:100 Then,I had ftp server on PC1 and PC2. I used ftp to get some files each other. But only eth0 got traffic shaping.. #tc -s class show dev eth0 class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit Sent 140656 bytes 5813 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3225 undertime 0 class cbq 1:10 parent 1:1 leaf 8001: rate 128Kbit (bounded) prio 7 Sent 68252 bytes 476 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 1.63339e+08 undertime 0 class cbq 1:1 parent 1: rate 100MKbit prio no-transmit Sent 68252 bytes 476 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3028 undertime 0 #tc -s class show dev wan0 class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit Sent 281212 bytes 9812 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3225 undertime 0 class cbq 1:10 parent 1:1 leaf 8001: rate 128Kbit (bounded) prio 7 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 1.63339e+08 undertime 0 class cbq 1:1 parent 1: rate 100MKbit prio no-transmit Sent 0 bytes 0 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3028 undertime 0 But when I ping or telnet from Linux router to PC2, TC can got my traffic?! #tc -s class show dev wan0 class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit Sent 2812 bytes 12 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3225 undertime 0 class cbq 1:10 parent 1:1 leaf 8001: rate 128Kbit (bounded) prio 7 Sent 1388 bytes 10 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 1.63339e+08 undertime 0 class cbq 1:1 parent 1: rate 100MKbit prio no-transmit Sent 1388 bytes 10 pkts (dropped 0, overlimits 0) borrowed 0 overactions 0 avgidle 3028 undertime 0 But Why???? PS: Linux kernel is 2.4.3 BEST REGARDS foxes Jul 10 2002 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/