> Hi all,
>
> During experimentation of DiffServ, I have an error.
>
> I did as follows...
>
> [root@my host ]# tc qdisc add dev eth1 root handle 1: cbq bandwidth 10Mbit
cell 8 avpkt 1000 mpu 64
> [root@my host ]# tc class add dev eth1 parent 1:0 classid 1:1 cbq
bandwidth 10Mbit rate 10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst
20 avpkt 1000
> [root@my host ]# tc class add dev eth1 parent 1:1 classid 1:2 cbq
bandwidth 10Mbit rate 3Mbit allot 1514 cell 8 weight 100Kbit prio 3 maxburst
20 avpkt 1000 split 1:0
> [root@my host ]# tc class add dev eth1 parent 1:1 classid 1:3 cbq
bandwidth 10Mbit rate 8Mbit allot 1514 cell 8 weight 800Kbit prio 7 maxburst
20 avpkt 1000 split 1:0
> [root@my host ]# tc filter add dev eth1 parent 1:0 protocol ip prio 100
route
>
> Until here, there's no problem.
> But, next step produces an error...
>
> [root@my host ]# ip route add 163.239.145.180 via 163.239.145.27 flow 1:2
> Error: either "to" is duplicate, or "flow" is a garbage.     <--- error
message
>
> what did I do wrong ?

The switches 'flow' and 'flowid' do not exist in ip (at least in my
version - 2.2.4) although I think I have seen them used in documentation.
In one of the README files there is an example where the above is done by
something like this:

tc filter add dev eth1 parent 1:0 protocol ip prio 100 route to 1 classid
1:2
ip route add 163.239.145.180 dev eth1 via 163.239.145.27 realm 1

Please note, I haven't tested the above.

Jared

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to