On Sat, Jun 04, 2005 at 02:48:01PM -0400, Jack Carroll wrote:
> With a 2.4 kernel, the route command works as described by its man page.
> With a 2.6 kernel, any form of "route add -net" or "route add -host" other 
> than "route add -net default" produces an error message
> 
> "SIOCADDRT: Invalid argument"
> 
> In at least some cases, entering one or more static routes and getting
> the error message, followed by entering a default route, will cause all
> the routes to come up and start working.
> 
> This was tested on Debian Sarge and Libranet 3.0.  Platforms are Pentium
> 1, Pentium 2, and dual Athlon MP.

I need you exact commands which cause the trouble, most likely you used the
wrong gateway settings.

This is BTW a kernel issue not a route problem. The requirements for a route
specification changed.

So please send me the output of "netstat -r" and "ifconfig" before your
route command and the route command itself. Othwise I am not able to help
you.

Just for the records, generally it works:

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 eth0
# route add -net 128.0.0.0 netmask 255.0.0.0 dev eth0
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
128.0.0.0       *               255.0.0.0       U     0      0        0 eth0
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth0
# route del -net 128.0.0.0 netmask 255.0.0.0
# route add -net 128.0.0.0 netmask 255.255.255.0 gw 10.0.0.1
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
128.0.0.0       10.0.0.1        255.255.255.0   UG    0      0        0 eth0
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth0
# uname -a
Linux calista 2.6.8.1 #1 Sat Sep 18 23:03:42 CEST 2004 i686 GNU/Linux

If you want to keep your configuration secret, you can send me the
typescript in private.

Greetings
Bernd
-- 
  (OO)      -- [EMAIL PROTECTED] --
 ( .. )      [EMAIL PROTECTED],linux.de,debian.org}  http://www.eckes.org/
  o--o     1024D/E383CD7E  [EMAIL PROTECTED]  v:+497211603874  f:+49721151516129
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to