<Alberto.Baragatti@nokia.com>
2002-Apr-22 07:58 UTC
RE: RTNETLINK answers: Invalid argument
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): CONFIG_IP_ADVANCED_ROUTER=y <==CONFIG_IP_MULTIPLE_TABLES=y <==CONFIG_IP_ROUTE_FWMARK=y CONFIG_IP_ROUTE_NAT=y CONFIG_IP_ROUTE_MULTIPATH=y CONFIG_IP_ROUTE_TOS=y CONFIG_IP_ROUTE_VERBOSE=y CONFIG_IP_ROUTE_LARGE_TABLES=y The new kernel is then able to perform policy routing in the correct way (iproute2-010824) ciao - Alberto -----Original Message----- From: ext Richardson, Robert [mailto:RRichardson@activision.com] Sent: Mittwoch, 6. März 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. 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/
Dear sir(lady) I used iproute2-2.4.7-now-ss011019-donotuse.tar.gz and iputils-ss011202.tar.gz for linux kernel 2.4.18 iptables 1.2.6 CONFIG_NETLINK_DEV=y CONFIG_IP_NF_TARGET_NETLINK=y i can use any command option about "ip" but I can not use "tc" such as tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b perturb 15 the error message is "RTNETLINK answers: Invalid argument" please tell me how can i do? _________________________________________________________ Do You Yahoo!? 摊开你的掌心 让我看看你 http://sweepstakes.yahoo.com/2002cnuser
On Monday 29 April 2002 06:08, hanhbnetfilter wrote:> Dear sir(lady) > I used iproute2-2.4.7-now-ss011019-donotuse.tar.gz > and iputils-ss011202.tar.gz for linux kernel 2.4.18 > iptables 1.2.6 > > CONFIG_NETLINK_DEV=y > > CONFIG_IP_NF_TARGET_NETLINK=y > i can use any command option about "ip" > but I can not use "tc" such as > tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b > perturb 15 > the error message is "RTNETLINK answers: Invalid > argument" > please tell me how can i do?Do you have a kernel with QOS support enabled ? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net