All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damion de Soto <damion@snapgear.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC]  script says RTNETLINK answers: Invalid argument
Date: Thu, 22 Jan 2004 00:08:55 +0000	[thread overview]
Message-ID: <400F1497.8050305@snapgear.com> (raw)

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/

                 reply	other threads:[~2004-01-22  0:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=400F1497.8050305@snapgear.com \
    --to=damion@snapgear.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.