Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Passadore Mauro <mpassadore@seltatel.it>
To: lartc@vger.kernel.org
Subject: [LARTC] Problems whit iproute
Date: Tue, 28 Jan 2003 08:42:15 +0000	[thread overview]
Message-ID: <marc-lartc-104374363228013@msgid-missing> (raw)

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/

             reply	other threads:[~2003-01-28  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28  8:42 Passadore Mauro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-07 12:54 [LARTC] Problems whit iproute Passadore Mauro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104374363228013@msgid-missing \
    --to=mpassadore@seltatel.it \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox