[LARTC] RTNETLINK answers: Invalid argument

Linux Advanced Routing and Traffic Control

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

 



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1C4A9.35A69030
Content-Type: text/plain

I get the same error message also, but for a non-related reason, maybe.
I am trying to run RX/TX load balancing on a RedHat a 6.2 download server.
The version of iproute is iproute-2.2.4-2.
When I invoke the command "ip rule list", I get the error message:
RTNETLINK answers: Invalid argument
Dump terminated

My ifconfig output shows that everything is being processed by eth0.

I even downloaded iproute2-current.tar.gz and ran a make, it did not seem
to upgrade the /sbin/ip file.  OR, I did not configure it correctly.

My /etc/rc.d/rc.local file reads:
ip rule add from xxx.xx.xxx.xxx table 30
ip rule add from xxx.xx.xxx.xxx table 31
ip rule add from xxx.xx.xxx.xxx table 32

ip route add xxx.xx.xxx.x/28 dev eth0 table 30
ip route add xxx.xx.xxx.x/28 dev eth1 table 31
ip route add xxx.xx.xxx.x/28 dev eth2 table 32

ip route add xxx.xx.xxx.x/28 equalize nexthop dev eth0 nexthop dev eth1
nexthop dev eth2

ip route add default via xxx.xx.xxx.x dev eth0 table 30
ip route add default via xxx.xx.xxx.x dev eth1 table 31
ip route add default via xxx.xx.xxx.x dev eth2 table 32

ip route add default equalize nexthop via xxx.xx.xxx.x dev eth0 nexthop via
xxx.xx.xxx.x dev eth1 nexthop via xxx.xx.xxx.x dev eth2


My /etc/sysconfig/network file has the following:
NETWORKING=yes
HOSTNAME=server.domainname.com
DOMAINNAME=activision.com
GATEWAY=xxx.xx.xxx.xxx
GATEWAYDEV=eth0
CONFIG_IP_ROUTE_MULTIPATH=yes
CONFIG_IP_MULTIPLE_TABLES=yes
CONFIG_IP_ADVANCED_ROUTER=yes


Can the load balancing I am attempting work on RedHat Linux 6.2?


Thanks,
Robert.

+++++++++++++++++++++++++++++++++++++++
-----Original Message-----
From: bert hubert [mailto:ahu@ds9a.nl]
Sent: Tuesday, March 05, 2002 1:53 PM
To: David E. Parks
Cc: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] RTNETLINK answers: Invalid argument


On Tue, Mar 05, 2002 at 04:38:32PM -0500, David E. Parks wrote:
> i'm fairly new to the list and just encountered this problem.. 
> 
> i have 2 machines, one w/ kernel 2.4.2-2 and the other w/ 2.4.12.  the
> kernel config files are the same on both machines w/ all the same stuff
> compiled in.  however, the 2.4.12 machine can't run tc, ip, etc (get
> RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no
> problems.

Are you really sure they are the same? Did you run 'make oldconfig' on
2.4.12? Do your modules work?

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

------_=_NextPart_001_01C1C4A9.35A69030
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>RE: [LARTC] RTNETLINK answers: Invalid argument</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I get the same error message also, but for a =
non-related reason, maybe.</FONT>
<BR><FONT SIZE=3D2>I am trying to run RX/TX load balancing on a RedHat =
a 6.2 download server.</FONT>
<BR><FONT SIZE=3D2>The version of iproute is iproute-2.2.4-2.</FONT>
<BR><FONT SIZE=3D2>When I invoke the command &quot;ip rule list&quot;, =
I get the error message:</FONT>
<BR><FONT SIZE=3D2>RTNETLINK answers: Invalid argument</FONT>
<BR><FONT SIZE=3D2>Dump terminated</FONT>
</P>

<P><FONT SIZE=3D2>My ifconfig output shows that everything is being =
processed by eth0.</FONT>
</P>

<P><FONT SIZE=3D2>I even downloaded iproute2-current.tar.gz and ran a =
make, it did not seem</FONT>
<BR><FONT SIZE=3D2>to upgrade the /sbin/ip file.&nbsp; OR, I did not =
configure it correctly.</FONT>
</P>

<P><FONT SIZE=3D2>My /etc/rc.d/rc.local file reads:</FONT>
<BR><FONT SIZE=3D2>ip rule add from xxx.xx.xxx.xxx table 30</FONT>
<BR><FONT SIZE=3D2>ip rule add from xxx.xx.xxx.xxx table 31</FONT>
<BR><FONT SIZE=3D2>ip rule add from xxx.xx.xxx.xxx table 32</FONT>
</P>

<P><FONT SIZE=3D2>ip route add xxx.xx.xxx.x/28 dev eth0 table 30</FONT>
<BR><FONT SIZE=3D2>ip route add xxx.xx.xxx.x/28 dev eth1 table =
31</FONT>
<BR><FONT SIZE=3D2>ip route add xxx.xx.xxx.x/28 dev eth2 table =
32</FONT>
</P>

<P><FONT SIZE=3D2>ip route add xxx.xx.xxx.x/28 equalize nexthop dev =
eth0 nexthop dev eth1 nexthop dev eth2</FONT>
</P>

<P><FONT SIZE=3D2>ip route add default via xxx.xx.xxx.x dev eth0 table =
30</FONT>
<BR><FONT SIZE=3D2>ip route add default via xxx.xx.xxx.x dev eth1 table =
31</FONT>
<BR><FONT SIZE=3D2>ip route add default via xxx.xx.xxx.x dev eth2 table =
32</FONT>
</P>

<P><FONT SIZE=3D2>ip route add default equalize nexthop via =
xxx.xx.xxx.x dev eth0 nexthop via xxx.xx.xxx.x dev eth1 nexthop via =
xxx.xx.xxx.x dev eth2</FONT></P>
<BR>

<P><FONT SIZE=3D2>My /etc/sysconfig/network file has the =
following:</FONT>
<BR><FONT SIZE=3D2>NETWORKING=3Dyes</FONT>
<BR><FONT SIZE=3D2>HOSTNAME=3Dserver.domainname.com</FONT>
<BR><FONT SIZE=3D2>DOMAINNAME=3Dactivision.com</FONT>
<BR><FONT SIZE=3D2>GATEWAY=3Dxxx.xx.xxx.xxx</FONT>
<BR><FONT SIZE=3D2>GATEWAYDEV=3Deth0</FONT>
<BR><FONT SIZE=3D2>CONFIG_IP_ROUTE_MULTIPATH=3Dyes</FONT>
<BR><FONT SIZE=3D2>CONFIG_IP_MULTIPLE_TABLES=3Dyes</FONT>
<BR><FONT SIZE=3D2>CONFIG_IP_ADVANCED_ROUTER=3Dyes</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Can the load balancing I am attempting work on RedHat =
Linux 6.2?</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Thanks,</FONT>
<BR><FONT SIZE=3D2>Robert.</FONT>
</P>

<P><FONT SIZE=3D2>+++++++++++++++++++++++++++++++++++++++</FONT>
<BR><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: bert hubert [<A =
HREF=3D"mailto:ahu@ds9a.nl";>mailto:ahu@ds9a.nl</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, March 05, 2002 1:53 PM</FONT>
<BR><FONT SIZE=3D2>To: David E. Parks</FONT>
<BR><FONT SIZE=3D2>Cc: lartc@mailman.ds9a.nl</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [LARTC] RTNETLINK answers: Invalid =
argument</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>On Tue, Mar 05, 2002 at 04:38:32PM -0500, David E. =
Parks wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; i'm fairly new to the list and just encountered =
this problem.. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; i have 2 machines, one w/ kernel 2.4.2-2 and =
the other w/ 2.4.12.&nbsp; the</FONT>
<BR><FONT SIZE=3D2>&gt; kernel config files are the same on both =
machines w/ all the same stuff</FONT>
<BR><FONT SIZE=3D2>&gt; compiled in.&nbsp; however, the 2.4.12 machine =
can't run tc, ip, etc (get</FONT>
<BR><FONT SIZE=3D2>&gt; RTNETLINK answers: Invalid argument) and the =
2.4.2-2 machine has no</FONT>
<BR><FONT SIZE=3D2>&gt; problems.</FONT>
</P>

<P><FONT SIZE=3D2>Are you really sure they are the same? Did you run =
'make oldconfig' on</FONT>
<BR><FONT SIZE=3D2>2.4.12? Do your modules work?</FONT>
</P>

<P><FONT SIZE=3D2>Regards,</FONT>
</P>

<P><FONT SIZE=3D2>bert</FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.PowerDNS.com"; =
TARGET=3D"_blank">http://www.PowerDNS.com</A>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; Versatile DNS Software &amp; =
Services</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.tk"; =
TARGET=3D"_blank">http://www.tk</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the =
dot in .tk</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://lartc.org"; =
TARGET=3D"_blank">http://lartc.org</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; Linux Advanced Routing &amp; Traffic Control =
HOWTO</FONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>LARTC mailing list / LARTC@mailman.ds9a.nl</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.ds9a.nl/mailman/listinfo/lartc"; =
TARGET=3D"_blank">http://mailman.ds9a.nl/mailman/listinfo/lartc</A> =
HOWTO: <A HREF=3D"http://lartc.org/"; =
TARGET=3D"_blank">http://lartc.org/</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1C4A9.35A69030--


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