network statement no more needed

Marc Fonvieille blackend at FreeBSD.org
Thu Mar 4 17:38:40 UTC 2004


On Thu, Mar 04, 2004 at 06:24:53PM +0100, Edoardo Martelli wrote:
> Hi Marc
> 
> >>route add network 192.168.2.0/24 192.168.1.2and
> >>
> >># Add Internal Net 2 as a static route
> >>static_routes="internalnet2"
> >>route_internalnet2="network 192.168.2.0/24 192.168.1.2"
> >>
> >>but it seems the "network" statement is no more needed.
> >>
> >You're right, actually it's "-net" not "network".
> >
> 
> with me, it worked just removing "network", without the "-net".
> 

Indeed in some cases, see route(8), the -net option is not needed,
however I will use -net in the Handbook, it's "safe" :)

Marc



More information about the freebsd-doc mailing list