* [LARTC] problems with u32 fiter
@ 2005-02-06 12:13 listas
2005-02-06 17:55 ` George Alexandru Dragoi
2005-02-08 2:00 ` Andy Furniss
0 siblings, 2 replies; 3+ messages in thread
From: listas @ 2005-02-06 12:13 UTC (permalink / raw)
To: lartc
hello to all
i'm trying to set a filter but doesn't want to work.
i've set ut the qdiscs and the classes like this :
tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:22 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:23 htb rate 30kbit ceil 120kbit
tc qdisc add dev ppp0 parent 1:20 handle 20: prio
tc qdisc add dev ppp0 parent 1:21 handle 21: prio
tc qdisc add dev ppp0 parent 1:22 handle 22: prio
tc qdisc add dev ppp0 parent 1:23 handle 23: prio
but when i try to set up the filters :
tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.2 flowid 1:23
tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.2.2 flowid 1:22
tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.1 flowid 1:21
says :
RTNETLINK answers: Invalid argument
---------------------------------------------------------------------
my system :
router:~# tc qdisc show dev ppp0
qdisc prio 23: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc prio 22: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc prio 21: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc prio 20: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
router:~# tc class show dev ppp0
class prio 23:1 parent 23: [UNKNOWN]
class prio 23:2 parent 23: [UNKNOWN]
class prio 23:3 parent 23: [UNKNOWN]
class prio 22:1 parent 22: [UNKNOWN]
class prio 22:2 parent 22: [UNKNOWN]
class prio 22:3 parent 22: [UNKNOWN]
class prio 21:1 parent 21: [UNKNOWN]
class prio 21:2 parent 21: [UNKNOWN]
class prio 21:3 parent 21: [UNKNOWN]
class prio 20:1 parent 20: [UNKNOWN]
class prio 20:2 parent 20: [UNKNOWN]
class prio 20:3 parent 20: [UNKNOWN]
class htb 1:22 parent 1:1 leaf 22: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
class htb 1:1 root rate 120Kbit ceil 120Kbit burst 1752b cburst 1752b
class htb 1:23 parent 1:1 leaf 23: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
class htb 1:20 parent 1:1 leaf 20: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
class htb 1:21 parent 1:1 leaf 21: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
router:~#
i'm stuck. anybody knows what's going on.
thank's
_______________________________________________
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] problems with u32 fiter
2005-02-06 12:13 [LARTC] problems with u32 fiter listas
@ 2005-02-06 17:55 ` George Alexandru Dragoi
2005-02-08 2:00 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: George Alexandru Dragoi @ 2005-02-06 17:55 UTC (permalink / raw)
To: lartc
I had something similar too, lok here
http://mailman.ds9a.nl/pipermail/lartc/2004q4/014444.html
On Sun, 6 Feb 2005 12:13:30 +0000, listas@pablodanielrey.com.ar
<listas@pablodanielrey.com.ar> wrote:
> hello to all
> i'm trying to set a filter but doesn't want to work.
> i've set ut the qdiscs and the classes like this :
>
> tc qdisc add dev ppp0 root handle 1: htb default 20
> tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:22 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:23 htb rate 30kbit ceil 120kbit
> tc qdisc add dev ppp0 parent 1:20 handle 20: prio
> tc qdisc add dev ppp0 parent 1:21 handle 21: prio
> tc qdisc add dev ppp0 parent 1:22 handle 22: prio
> tc qdisc add dev ppp0 parent 1:23 handle 23: prio
>
> but when i try to set up the filters :
>
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.2 flowid 1:23
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.2.2 flowid 1:22
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.1 flowid 1:21
>
> says :
>
> RTNETLINK answers: Invalid argument
>
> ---------------------------------------------------------------------
>
> my system :
>
> router:~# tc qdisc show dev ppp0
> qdisc prio 23: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
> qdisc prio 22: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
> qdisc prio 21: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
> qdisc prio 20: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
> qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
>
> router:~# tc class show dev ppp0
> class prio 23:1 parent 23: [UNKNOWN]
> class prio 23:2 parent 23: [UNKNOWN]
> class prio 23:3 parent 23: [UNKNOWN]
> class prio 22:1 parent 22: [UNKNOWN]
> class prio 22:2 parent 22: [UNKNOWN]
> class prio 22:3 parent 22: [UNKNOWN]
> class prio 21:1 parent 21: [UNKNOWN]
> class prio 21:2 parent 21: [UNKNOWN]
> class prio 21:3 parent 21: [UNKNOWN]
> class prio 20:1 parent 20: [UNKNOWN]
> class prio 20:2 parent 20: [UNKNOWN]
> class prio 20:3 parent 20: [UNKNOWN]
> class htb 1:22 parent 1:1 leaf 22: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
> class htb 1:1 root rate 120Kbit ceil 120Kbit burst 1752b cburst 1752b
> class htb 1:23 parent 1:1 leaf 23: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
> class htb 1:20 parent 1:1 leaf 20: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
> class htb 1:21 parent 1:1 leaf 21: prio 0 rate 30Kbit ceil 120Kbit burst 1637b cburst 1752b
> router:~#
>
> i'm stuck. anybody knows what's going on.
> thank's
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
Bla bla
_______________________________________________
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] problems with u32 fiter
2005-02-06 12:13 [LARTC] problems with u32 fiter listas
2005-02-06 17:55 ` George Alexandru Dragoi
@ 2005-02-08 2:00 ` Andy Furniss
1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2005-02-08 2:00 UTC (permalink / raw)
To: lartc
listas@pablodanielrey.com.ar wrote:
> hello to all
> i'm trying to set a filter but doesn't want to work.
> i've set ut the qdiscs and the classes like this :
>
> tc qdisc add dev ppp0 root handle 1: htb default 20
> tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:22 htb rate 30kbit ceil 120kbit
> tc class add dev ppp0 parent 1:1 classid 1:23 htb rate 30kbit ceil 120kbit
> tc qdisc add dev ppp0 parent 1:20 handle 20: prio
> tc qdisc add dev ppp0 parent 1:21 handle 21: prio
> tc qdisc add dev ppp0 parent 1:22 handle 22: prio
> tc qdisc add dev ppp0 parent 1:23 handle 23: prio
>
> but when i try to set up the filters :
>
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.2 flowid 1:23
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.2.2 flowid 1:22
> tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.1 flowid 1:21
you need protocol ip before u32 eg.
tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip src
192.168.0.2 flowid 1:23
Andy.
_______________________________________________
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:[~2005-02-08 2:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-06 12:13 [LARTC] problems with u32 fiter listas
2005-02-06 17:55 ` George Alexandru Dragoi
2005-02-08 2:00 ` Andy Furniss
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.