[LARTC] CBQ,... RTNETLINK: Invalid Argument

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I've got a problem i cant seem to find a way around... i've read the
Advanced Routing HOWTO, and im trying to setup (what i thought) would be a
simple bandwidth management scenario to limit trafic to a machine (1.2.3.4)
on the local lan to about 3K.

however... heres what im trying to do (follows the howto fairly closely)

-----
tc qdisc add dev eth0 root handle 1: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate
100Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000

tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate
3Kbit allot 1514 weight 1Kbit prio 5 maxburst 20 avpkt 1000 bounded

tc qdisc add dev eth0 parent 1:2 sfq quantum 1514b perturb 15

tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
1.2.3.4 flowid 1:2
-----

All works fine until the last statement;
# tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
1.2.3.4 flowid 1:2
RTNETLINK answers: Invalid argument
#

Have i missed something obvious? or is something missing from my kernel??

Im running with kernel 2.4.0.

Regards, Paul




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux