3c905b SIOCADDRT: Invalid argument with route

Brian D. Winters brianw@alumni.caltech.edu
Fri Mar 5 22:58:39 1999

On Fri, Mar 05, 1999 at 08:35:25PM -0500, ski@brianski.dyndns.com wrote:
> router:/etc/init.d# route add-net eth0
> SIOCADDRT: Invalid argument

For starters, I believe you need to seperate the "add" and "-net", but
that may have just been a typo in your e-mail.  Also, when I try this
on my system it seems to want a netmask.  Try:

  route add -net netmask eth0

It seems like at some point it was valid to leave off the netmask and
it would infer the netmask based on the interface's default, but I may
be mistaken.  It certainly seems to require it now.