[LARTC] RTNETLINK answers: Invalid argument

Linux Advanced Routing and Traffic Control

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

 



Hi All,
concerning the problem when running the "ip ru ls" command.
I faced with the same problem, and I solved it by making sure to include =
the following settings into the kernel configuration (2.4.18):
=20
CONFIG_IP_ADVANCED_ROUTER=3Dy    <=3D=3D=3D
CONFIG_IP_MULTIPLE_TABLES=3Dy       <=3D=3D=3D
CONFIG_IP_ROUTE_FWMARK=3Dy
CONFIG_IP_ROUTE_NAT=3Dy
CONFIG_IP_ROUTE_MULTIPATH=3Dy
CONFIG_IP_ROUTE_TOS=3Dy
CONFIG_IP_ROUTE_VERBOSE=3Dy
CONFIG_IP_ROUTE_LARGE_TABLES=3Dy

The new kernel is then able to perform policy routing in the correct way =
(iproute2-010824)
=20
ciao
- Alberto

-----Original Message-----
From: ext Richardson, Robert [mailto:RRichardson@activision.com]
Sent: Mittwoch, 6. M=E4rz 2002 1:53
To: 'bert hubert'; David E. Parks
Cc: lartc@mailman.ds9a.nl
Subject: RE: [LARTC] RTNETLINK answers: Invalid argument



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

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

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

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

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

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

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

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:=20
NETWORKING=3Dyes=20
HOSTNAME=3Dserver.domainname.com=20
DOMAINNAME=3Dactivision.com=20
GATEWAY=3Dxxx.xx.xxx.xxx=20
GATEWAYDEV=3Deth0=20
CONFIG_IP_ROUTE_MULTIPATH=3Dyes=20
CONFIG_IP_MULTIPLE_TABLES=3Dyes=20
CONFIG_IP_ADVANCED_ROUTER=3Dyes=20


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


Thanks,=20
Robert.=20

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


On Tue, Mar 05, 2002 at 04:38:32PM -0500, David E. Parks wrote:=20
> i'm fairly new to the list and just encountered this problem..=20
>=20
> 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=20
> compiled in.  however, the 2.4.12 machine can't run tc, ip, etc (get=20
> RTNETLINK answers: Invalid argument) and the 2.4.2-2 machine has no=20
> problems.=20

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

Regards,=20

bert=20

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



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