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

Re: Routing



"Mark Maas" <mark@menem.mine.nu> writes:
>
> Ok thanks, tried it but I get:
> 
> SIOCADDRT: Invalid argument
> 
> when I issue:
> route add -net 192.168.3.0 eth0

Include the netmask anyway:

        route add -net 192.168.3.0 netmask 255.255.255.0 eth0

or, if you prefer the short version (CIDR style address):

        route add -net 192.168.3.0/24 eth0

The manpage was presumably correct at some point, but it's wrong now.
This was either a kernel or "route" change.  The IP address class
system has been largely obsoleted by CIDR, and that's made it
inappropriate for either "route" or the kernel to try to guess a
netmask for the most part.

-- 
Kevin <buhr@telus.net>



Reply to: