* [LARTC] IMQ ingress shaping
@ 2003-03-17 0:22 Jirka Pirko
2003-03-17 17:20 ` Stef Coene
2003-03-21 19:02 ` Alexander Trotsai
0 siblings, 2 replies; 3+ messages in thread
From: Jirka Pirko @ 2003-03-17 0:22 UTC (permalink / raw)
To: lartc
is here anybody successfully running HTB + IMQ for ingress traffic?? i can't
do it :(
i'm using following commands:
# ifconfig imq0 up
# iptables -A PREROUTING -t mangle -i eth2 -j IMQ --todev imq0
# tc qdisc add dev imq0 root handle 1 htb default 0
# tc class add dev imq0 parent 1: classid 1:2 htb rate 11Mbit
# tc class add dev imq0 parent 1:2 classid 1:10 htb rate 128Kbit prio 50
# tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
192.168.1.1 classid 1:10
# tc class add dev imq0 parent 1:2 classid 1:20 htb rate 128Kbit prio 60
# tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
192.168.1.2 classid 1:20
then
# tc qdisc show dev imq0
qdisc htb 1: r2q 10 default 0 direct_packets_stat 0
it seems to me like no pakets are coming thru imq0 but why? i thing i have
iptables set right.
anybody see mistake?
i've made IMQ work to shape engress trafic on multiple interfaces, but this
i can't solve :/
thx
xpeyrak
excause my poor english
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] IMQ ingress shaping
2003-03-17 0:22 [LARTC] IMQ ingress shaping Jirka Pirko
@ 2003-03-17 17:20 ` Stef Coene
2003-03-21 19:02 ` Alexander Trotsai
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-03-17 17:20 UTC (permalink / raw)
To: lartc
On Monday 17 March 2003 01:22, Jirka Pirko wrote:
> is here anybody successfully running HTB + IMQ for ingress traffic?? i
> can't do it :(
>
> i'm using following commands:
>
> # ifconfig imq0 up
> # iptables -A PREROUTING -t mangle -i eth2 -j IMQ --todev imq0
> # tc qdisc add dev imq0 root handle 1 htb default 0
> # tc class add dev imq0 parent 1: classid 1:2 htb rate 11Mbit
> # tc class add dev imq0 parent 1:2 classid 1:10 htb rate 128Kbit prio 50
> # tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
> 192.168.1.1 classid 1:10
> # tc class add dev imq0 parent 1:2 classid 1:20 htb rate 128Kbit prio 60
> # tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
> 192.168.1.2 classid 1:20
>
> then
>
> # tc qdisc show dev imq0
> qdisc htb 1: r2q 10 default 0 direct_packets_stat 0
>
> it seems to me like no pakets are coming thru imq0 but why? i thing i have
> iptables set right.
>
> anybody see mistake?
Can you check with iptables -L -v -n -t mantgle that your iptables counters
are increasing?
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] 3+ messages in thread
* Re: [LARTC] IMQ ingress shaping
2003-03-17 0:22 [LARTC] IMQ ingress shaping Jirka Pirko
2003-03-17 17:20 ` Stef Coene
@ 2003-03-21 19:02 ` Alexander Trotsai
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Trotsai @ 2003-03-21 19:02 UTC (permalink / raw)
To: lartc
On Mon, Mar 17, 2003 at 01:22:38AM +0100, Jirka Pirko wrote:
JP>is here anybody successfully running HTB + IMQ for ingress traffic?? i can't
JP>do it :(
JP>i'm using following commands:
JP># ifconfig imq0 up
JP># iptables -A PREROUTING -t mangle -i eth2 -j IMQ --todev imq0
I see mistake at line before
you must wrote such line
iptables -A PREROUTING -t mangle -i eth2 -j IMQ --todev 0
JP># tc qdisc add dev imq0 root handle 1 htb default 0
JP># tc class add dev imq0 parent 1: classid 1:2 htb rate 11Mbit
JP># tc class add dev imq0 parent 1:2 classid 1:10 htb rate 128Kbit prio 50
JP># tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
JP>192.168.1.1 classid 1:10
JP># tc class add dev imq0 parent 1:2 classid 1:20 htb rate 128Kbit prio 60
JP># tc filter add dev imq0 parent 1:0 protocol ip prio 100 u32 match ip dst
JP>192.168.1.2 classid 1:20
JP>then
JP># tc qdisc show dev imq0
JP>qdisc htb 1: r2q 10 default 0 direct_packets_stat 0
JP>it seems to me like no pakets are coming thru imq0 but why? i thing i have
JP>iptables set right.
JP>anybody see mistake?
JP>i've made IMQ work to shape engress trafic on multiple interfaces, but this
JP>i can't solve :/
JP>thx
JP>xpeyrak
JP>excause my poor english
JP>_______________________________________________
JP>LARTC mailing list / LARTC@mailman.ds9a.nl
JP>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Best regard, Aleksander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My PGP key at ftp://blackhole.adamant.ua/pgp/trotsai.key[.asc]
Big trouble - your keyboard's space bar is generating spurious keycodes.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-03-21 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 0:22 [LARTC] IMQ ingress shaping Jirka Pirko
2003-03-17 17:20 ` Stef Coene
2003-03-21 19:02 ` Alexander Trotsai
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.