From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damion de Soto Date: Thu, 22 Jan 2004 00:08:55 +0000 Subject: Re: [LARTC] script says RTNETLINK answers: Invalid argument Message-Id: <400F1497.8050305@snapgear.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Javier, 1) don't 'reply' to messages if you are starting a new question/topic/thread 2) a relevent subject would help too. > Hi, I have a litle problem with this code > > I have two virtual ips (50 y 51) and this ips are the gateway > > ip address add 192.168.0.50 dev eth1 > ip address add 192.168.0.51 dev eth1 > tc qdisc add dev eth1 root handle 1: cbq bandwidth 512kbit cell 8 avpkt \ > 1000 mpu 64 > tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 512kbit rate \ > 100kBit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21 > tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 512kbit rate \ > 100kbit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21 > tc filter add dev eth1 parent 1:0 protocol ip prio 5 handle 1: u32 divisor 1 > tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.50 \ > flowid 1:1 > tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.51 \ > flowid 1:2 > > and this scrip say: > > RTNETLINK answers: Invalid argument > RTNETLINK answers: Invalid argument > RTNETLINK answers: Invalid argument 3) You should really run the commands in the script one by one, so you can find out exactly which ones are failing. I would suggest that the 'tc qdisc .... cbq' commands are failing - probabaly because you don't have the cbq module in your kernel. but, it could be the filter commands (u32 module), or something else. regards, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org --- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/