* [LARTC] Problems whit iproute
@ 2002-11-07 12:54 Passadore Mauro
0 siblings, 0 replies; 2+ messages in thread
From: Passadore Mauro @ 2002-11-07 12:54 UTC (permalink / raw)
To: lartc
Hello all,
I have a problem with tc:
I run this script:
#!/bin/sh
bandadKbit
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth $banda avpkt 1000 cell 8
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 500
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 100
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth $banda rate
16kbit maxburst 20 avpkt 1500
tc qdisc add dev eth0 parent 1:3 handle 30: sfq
tc qdisc add dev eth0 parent 1:4 handle 40: sfq
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10
0xff flowid 1:3
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x00
0xff flowid 1:4
the probelm is that this configuration seems only to be applied to loacally
generated traffic, but the packets received by my linux box that have to be
forwarded are not matched by any filter. Do you have any idea about wich
could be the problem?
Thanks
Mauro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [LARTC] Problems whit iproute
@ 2003-01-28 8:42 Passadore Mauro
0 siblings, 0 replies; 2+ messages in thread
From: Passadore Mauro @ 2003-01-28 8:42 UTC (permalink / raw)
To: lartc
Hello all,
I have installed in my Linux box (Motorola ppc 8245, HardHat linux 2.1,
kernel 2.4.17) a wan card (cyclades PC300 based on generic HDLC driver).
+--------------------+
| |
<------->| Linux box |<-------->
eth0 | | pvc0
192.168.1.2/24 | | 192.168.7.2/24
+--------------------+
I have a problem with tc:
I run this script:
#!/bin/sh
bandadKbit
tc qdisc del dev pvc0 root
tc qdisc add dev pvc0 root handle 1:0 cbq bandwidth $banda avpkt 1000 cell 8
tc class add dev pvc0 parent 1:0 classid 1:1 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 500
tc class add dev pvc0 parent 1:1 classid 1:3 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 100
tc class add dev pvc0 parent 1:1 classid 1:4 cbq bandwidth $banda rate
16kbit maxburst 20 avpkt 1500
tc qdisc add dev pvc0 parent 1:3 handle 30: sfq
tc qdisc add dev pvc0 parent 1:4 handle 40: sfq
tc filter add dev pvc0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10
0xff flowid 1:3
tc filter add dev pvc0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x00
0xff flowid 1:4
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth $banda avpkt 1000 cell 8
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 500
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 100
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth $banda rate
16kbit maxburst 20 avpkt 1500
tc qdisc add dev eth0 parent 1:3 handle 30: sfq
tc qdisc add dev eth0 parent 1:4 handle 40: sfq
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10
0xff flowid 1:3
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x00
0xff flowid 1:4
the probelm is that this configuration work fine when is applied to loacally
generated traffic, but when the packets received by my linux box (from eth0)
that have to be forwarded are not matched by any filter on pvc0 device. The
same think doesn't apply to traffic from pvc0 forwarded to eth0. Do you have
any idea about wich could be the problem?
Thanks
Mauro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-28 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-07 12:54 [LARTC] Problems whit iproute Passadore Mauro
-- strict thread matches above, loose matches on Subject: below --
2003-01-28 8:42 Passadore Mauro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox