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.
thanks for advance help
hare
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 19 lines
-----Original Message-----
From: hare ram [mailto:[email protected]]
Sent: 14 April 2003 15:01
To: [email protected]
Subject: [LARTC] problem with IMQHi 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 wrongi have patched the kernel and make also i have rebooted with new kernel
but iam getting the folloing error
Quoted 13 lines
[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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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" <[email protected]>
To: "'hare ram'" <[email protected]>; <[email protected]>
Sent: Monday, April 14, 2003 7:26 PM
Subject: RE: [LARTC] problem with IMQ
Quoted 47 lines
Quoted 19 lines
-----Original Message-----
From: hare ram [mailto:[email protected]]
Sent: 14 April 2003 15:01
To: [email protected]
Subject: [LARTC] problem with IMQHi 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 wrongi have patched the kernel and make also i have rebooted with new kernel
but iam getting the folloing errorQuoted 13 lines
[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.
Quoted 7 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines · hare ram
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 wrongi have patched the kernel and make also
i have rebooted with new kernel
but iam getting the folloing error
Quoted 9 lines
[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.
Quoted 1 line
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] PROBLEM WITH IMQ
In reply to hare ramI 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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc