All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] problem with IMQ
@ 2003-04-14 13:51 hare ram
  2003-04-14 13:56 ` Hocking James A
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hare ram @ 2003-04-14 13:51 UTC (permalink / raw)
  To: lartc

Hi all


iam working with Bridge with Linux RH 8.0
when i making sample config in the document, iam getting following error
could some one point me what is wrong

i have patched the kernel and make also
i have rebooted with new kernel
but iam getting the folloing error

[root@bridge root]# modprobe imq numdevs=1
[root@bridge root]#  tc qdisc add dev imq0 handle 1: root htb default 1
[root@bridge root]#  tc class add dev imq0 parent 1: classid 1:1 htb rate
1mbit
[root@bridge root]#  tc qdisc add dev imq0 parent 1:1 handle 10: htb default
5
[root@bridge root]#  tc class add dev imq0 parent 10: handle 10:1 htb rate
256kbit burst 30k prio 1
Error: Qdisc "handle" is classless.

thanks for advance help

hare


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [LARTC] problem with IMQ
  2003-04-14 13:51 [LARTC] problem with IMQ hare ram
@ 2003-04-14 13:56 ` Hocking James A
  2003-04-14 14:38 ` hare ram
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Hocking James A @ 2003-04-14 13:56 UTC (permalink / raw)
  To: lartc

> -----Original Message-----
> From: hare ram [mailto:hareram@sol.net.in]
> Sent: 14 April 2003 15:01
> To: lartc@mailman.ds9a.nl
> Subject: [LARTC] problem with IMQ
> 
> 
> Hi all
> 
> 
> iam working with Bridge with Linux RH 8.0
> when i making sample config in the document, iam getting 
> following error
> could some one point me what is wrong
> 
> i have patched the kernel and make also
> i have rebooted with new kernel
> but iam getting the folloing error
> 
> [root@bridge root]# modprobe imq numdevs=1
> [root@bridge root]#  tc qdisc add dev imq0 handle 1: root htb 
> default 1
> [root@bridge root]#  tc class add dev imq0 parent 1: classid 
> 1:1 htb rate
> 1mbit
> [root@bridge root]#  tc qdisc add dev imq0 parent 1:1 handle 
> 10: htb default
> 5
> [root@bridge root]#  tc class add dev imq0 parent 10: handle 
> 10:1 htb rate
> 256kbit burst 30k prio 1
> Error: Qdisc "handle" is classless.

This last line should be:

tc class add dev imq0 parent 10: classid 10:1 htb rate 256kbit burst 30k
prio 1
                                 ^^^^^^^
James


The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information
is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored.
Calls to our Customer Contact Centre may be recorded for quality control,
regulatory and monitoring purposes.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] problem with IMQ
  2003-04-14 13:51 [LARTC] problem with IMQ hare ram
  2003-04-14 13:56 ` Hocking James A
@ 2003-04-14 14:38 ` hare ram
  2003-04-14 15:47 ` Stef Coene
  2005-06-23 12:20 ` [LARTC] PROBLEM WITH IMQ s.az
  3 siblings, 0 replies; 5+ messages in thread
From: hare ram @ 2003-04-14 14:38 UTC (permalink / raw)
  To: lartc

Hi thanks all for the help

i have added for egress filter

modprobe imq numdevs=1

 tc qdisc add dev imq0 handle 1: root htb default 1
 tc class add dev imq0 parent 1: classid 1:1 htb rate 100kbit

 tc qdisc add dev imq0 parent 1:1 handle 10: htb default 1
 tc class add dev imq0 parent 10: classid 10:10 htb rate 100kbit
 tc qdisc add dev imq0 parent 10:10 handle 20: sfq

 iptables -t mangle -A POSTROUTING -p tcp --dport 80 -j IMQ

 ip link set imq0 up


when i see the iptable -nxvL -t mangle,   iam not able to see the rule which
postrouting sending packets to IMQ

[root@bridge root]# iptables -nxvL -t mangle
Chain PREROUTING (policy ACCEPT 11798 packets, 1175157 bytes)
    pkts      bytes target     prot opt in     out     source
destination

Chain INPUT (policy ACCEPT 2674 packets, 162372 bytes)
    pkts      bytes target     prot opt in     out     source
destination

Chain FORWARD (policy ACCEPT 9509 packets, 1048840 bytes)
    pkts      bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 1820 packets, 213096 bytes)
    pkts      bytes target     prot opt in     out     source
destination

Chain POSTROUTING (policy ACCEPT 11329 packets, 1261936 bytes)
    pkts      bytes target     prot opt in     out     source
destination



And iam not able to see any traffic ifconfig imq, its 0 bytes


imq0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:30
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)




my setup is like this

my laptop---eth1(Bridge)eth0---Switch--Router--internet

when i have made the packets to jump to IMQ, i should see some traffic in
IMQ right ?
but iam not able to any traffic

any guidance will be great

hare


----- Original Message -----
From: "Hocking James A" <JAHOCKING@qinetiq.com>
To: "'hare ram'" <hareram@sol.net.in>; <lartc@mailman.ds9a.nl>
Sent: Monday, April 14, 2003 7:26 PM
Subject: RE: [LARTC] problem with IMQ


> > -----Original Message-----
> > From: hare ram [mailto:hareram@sol.net.in]
> > Sent: 14 April 2003 15:01
> > To: lartc@mailman.ds9a.nl
> > Subject: [LARTC] problem with IMQ
> >
> >
> > Hi all
> >
> >
> > iam working with Bridge with Linux RH 8.0
> > when i making sample config in the document, iam getting
> > following error
> > could some one point me what is wrong
> >
> > i have patched the kernel and make also
> > i have rebooted with new kernel
> > but iam getting the folloing error
> >
> > [root@bridge root]# modprobe imq numdevs=1
> > [root@bridge root]#  tc qdisc add dev imq0 handle 1: root htb
> > default 1
> > [root@bridge root]#  tc class add dev imq0 parent 1: classid
> > 1:1 htb rate
> > 1mbit
> > [root@bridge root]#  tc qdisc add dev imq0 parent 1:1 handle
> > 10: htb default
> > 5
> > [root@bridge root]#  tc class add dev imq0 parent 10: handle
> > 10:1 htb rate
> > 256kbit burst 30k prio 1
> > Error: Qdisc "handle" is classless.
>
> This last line should be:
>
> tc class add dev imq0 parent 10: classid 10:1 htb rate 256kbit burst 30k
> prio 1
>                                  ^^^^^^^
> James
>
>
> The Information contained in this E-Mail and any subsequent correspondence
> is private and is intended solely for the intended recipient(s).
> For those other than the recipient any disclosure, copying, distribution,
> or any action taken or omitted to be taken in reliance on such information
> is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be monitored.
> Calls to our Customer Contact Centre may be recorded for quality control,
> regulatory and monitoring purposes.
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] problem with IMQ
  2003-04-14 13:51 [LARTC] problem with IMQ hare ram
  2003-04-14 13:56 ` Hocking James A
  2003-04-14 14:38 ` hare ram
@ 2003-04-14 15:47 ` Stef Coene
  2005-06-23 12:20 ` [LARTC] PROBLEM WITH IMQ s.az
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-04-14 15:47 UTC (permalink / raw)
  To: lartc

On Monday 14 April 2003 16:01, hare ram wrote:
> Hi all
>
>
> iam working with Bridge with Linux RH 8.0
> when i making sample config in the document, iam getting following error
> could some one point me what is wrong
>
> i have patched the kernel and make also
> i have rebooted with new kernel
> but iam getting the folloing error
>
> [root@bridge root]# modprobe imq numdevs=1
> [root@bridge root]#  tc qdisc add dev imq0 handle 1: root htb default 1
> [root@bridge root]#  tc class add dev imq0 parent 1: classid 1:1 htb rate
> 1mbit
> [root@bridge root]#  tc qdisc add dev imq0 parent 1:1 handle 10: htb
> default 5
> [root@bridge root]#  tc class add dev imq0 parent 10: handle 10:1 htb rate
> 256kbit burst 30k prio 1
> Error: Qdisc "handle" is classless.
You mixed handle and classid in your commands.

> thanks for advance help
It's not such a good idea to add a htb qdisc to a htb class.  It will only 
create extra delays.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LARTC] PROBLEM WITH IMQ
  2003-04-14 13:51 [LARTC] problem with IMQ hare ram
                   ` (2 preceding siblings ...)
  2003-04-14 15:47 ` Stef Coene
@ 2005-06-23 12:20 ` s.az
  3 siblings, 0 replies; 5+ messages in thread
From: s.az @ 2005-06-23 12:20 UTC (permalink / raw)
  To: lartc

I want to shape the bandwith for only 2 PC's but  cannot make this work.

This is what i do ( i want to use imq for all this )

ip link set imq0 up

tc qdisc add dev imq0 root handle 1: htb default 2
tc class add dev imq0 parent 1: classid 1:1 htb rate 100kbit burst 6k prio 0
tc class add dev imq0 parent 1: classid 1:2 htb rate 50kbit burst 6k prio 2
tc filter add dev imq0 parent 1: protocol ip prio 1 u32 match ip src 
10.0.0.2 flowid 1:1

iptables -t mangle -A PREROUTING -i eth0 -p TCP -j IMQ --todev 0

using the 10.0.0.2 ip it always take the class 2 ( the default class ). 
it does not obey the filter.
What part it's wrong in this?

Thanks

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-23 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-14 13:51 [LARTC] problem with IMQ hare ram
2003-04-14 13:56 ` Hocking James A
2003-04-14 14:38 ` hare ram
2003-04-14 15:47 ` Stef Coene
2005-06-23 12:20 ` [LARTC] PROBLEM WITH IMQ s.az

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.