All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC]  script says RTNETLINK answers: Invalid argument
@ 2004-01-22  0:08 Damion de Soto
  0 siblings, 0 replies; only message in thread
From: Damion de Soto @ 2004-01-22  0:08 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-22  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22  0:08 [LARTC] script says RTNETLINK answers: Invalid argument Damion de Soto

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.