Qu: on ip route

Vinay V.Kulkarni (vini@ece.iisc.ernet.in)
Tue, 22 Jun 1999 10:33:10 +0530 (GMT+05:30)


Hello all :

I have a script for establishing tbf as follows :

---------8<--------8<---------8<
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit avpkt \
1000 mpu 64

tc class add dev eth0 parent 1:1 classid :2 est 1sec 8sec cbq \
bandwidth 10Mbit rate 4Mbit allot 1514 weight 100Kbit \
prio 6 maxburst 50 avpkt 1000 split 1:0 defmap ff3d

tc qdisc add dev eth0 parent 1:2 tbf rate 64Kbit buffer 2Kb/8 limit
10Kb

tc filter add dev eth0 parent 1:2 protocol ip prio 6 route

ip route add 192.168.64.2 dev eth0 flow 0x10001

--------8<------8<--------8<

Till I add the "ip route..." the configuration works fine. But the "ip
route..." gives an error :

Error: either "to" is duplicate, or "flow" is a garbage

The setup is as below and I am configuring Host A:

192.168.64.221 192.168.64.2
-------------- --------------
| Host A | -----------> | Host B |
-------------- --------------

Could anybody offer some help in finding the cause ? (pointers to
understand the configuration of "ip route" will also help a lot).

Thank you everbody in advance.
--Vinay.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu