Hi all, I have installed 2.4.5 kernel, Debian Potato. my tc script: #!/bin/bash tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 echo root tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \ 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 echo class tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \ 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ bounded echo 100 tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \ 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ bounded echo 200 tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15 echo sfq100 tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15 echo sfq200 tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100 echo filter100 tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100 echo filter200 after running my tc script: 0 root@gateway:/root# source /etc/init.d/tc root class 100 200 sfq100 sfq200 RTNETLINK answers: Invalid argument filter100 RTNETLINK answers: Invalid argument filter200 my kernel .config file is attached. Thank you for help! kolisko
Hello, is here somebody who can help me? Where is the best place (mailinglist) for tc troubleshoting? Or if You need some another information tell me please. iptables-1.2.2 - from original sources ip utility, iproute2-ss991023 - from debian potato distribution I am newbie I dont have experiences with tc. What is wrong? Thank You! kolisko ----- Original Message ----- From: Michal Kolesar To: lartc@mailman.ds9a.nl Sent: Tuesday, June 19, 2001 12:38 PM Subject: [LARTC] RTNETLINK answers: Invalid argument Hi all, I have installed 2.4.5 kernel, Debian Potato. my tc script: #!/bin/bash tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 echo root tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \ 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 echo class tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit rate \ 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ bounded echo 100 tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit rate \ 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ bounded echo 200 tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15 echo sfq100 tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15 echo sfq200 tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src 192.168.0.7 flowid 20:100 echo filter100 tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src 192.168.0.0/24 flowid 20:100 echo filter200 after running my tc script: 0 root@gateway:/root# source /etc/init.d/tc root class 100 200 sfq100 sfq200 RTNETLINK answers: Invalid argument filter100 RTNETLINK answers: Invalid argument filter200 my kernel .config file is attached. Thank you for help! kolisko
On Tue, 19 Jun 2001, Michal Kolesar wrote:> my kernel .config file is attached.I don''t see any problems in your script at first sight. Are you sure you enabled the u32 filter in the kernel? I wasn''t able to view it because your mail agent defined the mime type as octetstream/application. Could you please fix that and check the QoS settings. They should like like: # # QoS and/or fair queueing # CONFIG_NET_SCHED=y CONFIG_NETLINK=y CONFIG_RTNETLINK=y CONFIG_NET_SCH_CBQ=y CONFIG_NET_SCH_CSZ=y CONFIG_NET_SCH_PRIO=y CONFIG_NET_SCH_RED=y CONFIG_NET_SCH_SFQ=y CONFIG_NET_SCH_TEQL=y CONFIG_NET_SCH_TBF=y CONFIG_NET_SCH_GRED=y CONFIG_NET_SCH_DSMARK=y CONFIG_NET_SCH_INGRESS=y CONFIG_NET_QOS=y CONFIG_NET_ESTIMATOR=y CONFIG_NET_CLS=y CONFIG_NET_CLS_TCINDEX=y CONFIG_NET_CLS_ROUTE4=y CONFIG_NET_CLS_ROUTE=y CONFIG_NET_CLS_FW=y CONFIG_NET_CLS_U32=y CONFIG_NET_CLS_RSVP=y CONFIG_NET_CLS_RSVP6=y CONFIG_NET_CLS_POLICE=y Regards. -- GnuPG public key: http://www.keyserver.net fingerprint = A3C4 DE50 712D 4FA8 C564 4D96 5E06 C9CC ECFA 19C5
> Michal Kolesar wrote: > > Hi all, > > I have installed 2.4.5 kernel, Debian Potato. > > my tc script: > #!/bin/bash > > tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000 > echo root > tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit > rate \ > 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 > echo class > tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 10Mbit > rate \ > 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ > bounded > echo 100 > tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 10Mbit > rate \ > 5Mbit allot 1514 weight 500Kbit prio 5 maxburst 20 avpkt 1000 \ > bounded > echo 200 > tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15 > echo sfq100 > tc qdisc add dev eth1 parent 20:200 sfq quantum 1514b perturb 15 > echo sfq200 > tc filter add dev eth1 parent 20:0 prio 25 u32 match ip src > 192.168.0.7 flowid 20:100 > echo filter100 > tc filter add dev eth1 parent 20:0 prio 50 u32 match ip src > 192.168.0.0/24 flowid 20:100 > echo filter200 > > > after running my tc script: > 0 root@gateway:/root# source /etc/init.d/tc > root > class > 100 > 200 > sfq100 > sfq200 > RTNETLINK answers: Invalid argument > filter100 > RTNETLINK answers: Invalid argument > filter200Do you use modules? No: make sure you enabled everything, Yes: make sure te modules are loaded. Stef -- stafke@iname.com stef.coene@belgacom.net More QOS info : http://users.belgacom.net/staf/