From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michal Kolesar" Date: Fri, 22 Jun 2001 01:54:31 +0000 Subject: [LARTC] Re MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_011A_01C0FACF.0AD66190" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_011A_01C0FACF.0AD66190 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable I dont use modules... I compiled all directly to the kernel.... but it seems that the u32 is not compiled in kernel... but I have really care for compiling everithing in kernel.. kolisko ----- Original Message -----=20 From: "Stef Coene" To: "Michal Kolesar" Cc: Sent: Thursday, June 21, 2001 3:44 PM Subject: Re: [LARTC] RTNETLINK answers: Invalid argument > > Michal Kolesar wrote: > >=20 > > Hi all, > >=20 > > I have installed 2.4.5 kernel, Debian Potato. > >=20 > > my tc script: > > #!/bin/bash > >=20 > > 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 > >=20 > >=20 > > 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 > Do you use modules? No: make sure you enabled everything, Yes: make > sure te modules are loaded. >=20 > Stef >=20 > --=20 >=20 > stafke@iname.com stef.coene@belgacom.net > More QOS info : http://users.belgacom.net/staf/ >=20 > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: = http://ds9a.nl/2.4Routing/ >=20 ------=_NextPart_000_011A_01C0FACF.0AD66190 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
I dont use modules... I compiled all directly to the = kernel....

but=20 it seems that the u32 is not compiled in kernel...

but I have = really care=20 for compiling everithing in kernel..

kolisko
----- Original Message -----=20
From: "Stef Coene" <stafke@iname.com>
To: "Michal Kolesar" <kolesar@samba.cz>
Cc: <lartc@mailman.ds9a.nl>
=
Sent: Thursday, June 21, 2001 3:44 PM
Subject: Re: [LARTC] RTNETLINK answers: Invalid = argument

> > Michal Kolesar wrote:
> >
> = > Hi=20 all,
> >
> > I have installed 2.4.5 kernel, Debian=20 Potato.
> >
> > my tc script:
> >=20 #!/bin/bash
> >
> > tc qdisc add dev eth1 root handle = 20: cbq=20 bandwidth 10Mbit avpkt 1000
> > echo root
> > tc class = add dev=20 eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit
> > rate = \
>=20 > 10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt = 1000
> >=20 echo class
> > tc class add dev eth1 parent 20:1 classid 20:100 = cbq=20 bandwidth 10Mbit
> > rate \
> > 5Mbit allot 1514 = weight=20 500Kbit prio 5 maxburst 20 avpkt 1000 \
> > bounded
> = > echo=20 100
> > tc class add dev eth1 parent 20:1 classid 20:200 cbq = bandwidth=20 10Mbit
> > rate \
> > 5Mbit allot 1514 weight 500Kbit = prio 5=20 maxburst 20 avpkt 1000 \
> > bounded
> > echo = 200
> >=20 tc qdisc add dev eth1 parent 20:100 sfq quantum 1514b perturb 15
> = >=20 echo sfq100
> > tc qdisc add dev eth1 parent 20:200 sfq quantum = 1514b=20 perturb 15
> > echo sfq200
> > tc filter add dev eth1 = parent=20 20:0 prio 25 u32 match ip src
> > 192.168.0.7 flowid = 20:100
>=20 > echo filter100
> > tc filter add dev eth1 parent 20:0 prio = 50 u32=20 match ip src
> > 192.168.0.0/24 flowid 20:100
> > echo = filter200
> >
> >
> > after running my tc=20 script:
> > 0 root@gateway:/root# source=20 /etc/init.d/tc
> > root
> > class
> > = 100
>=20 > 200
> > sfq100
> > sfq200
> > RTNETLINK = answers:=20 Invalid argument
> > filter100
> > RTNETLINK answers: = Invalid=20 argument
> > filter200
> Do you use modules? No: make = sure you=20 enabled everything,  Yes: make
> sure te modules are = loaded.
>=20
> Stef
>
> --
>
> stafke@iname.com   &n= bsp;   =20 stef.coene@belgacom.net
&g= t;=20 More QOS info : http://users.belgacom.net/staf/<= /A>
>=20
> _______________________________________________
> LARTC = mailing=20 list / LARTC@mailman.ds9a.nl
>=20 http://mailman.ds9= a.nl/mailman/listinfo/lartc=20 HOWTO: http://ds9a.nl/2.4Routing/
>= ;=20
------=_NextPart_000_011A_01C0FACF.0AD66190-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/