On Jan 16, 2008 5:56 AM, Pau Amaro-Seoane <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am sitting in a building and in order to have access to the network
> of another building I have been told to do the following:
>
> route add -net xxx.169.58.0 netmask 255.255.255.158 gw xxx.xxx.72.2
>
> but, of course, this is for linuxy...
>
> I get "route: netmask: bad address". I thought this was due to "gw"
> but, when specifying "gateway", the result is the same...
>
> any help? newbies, newbies, remember...
>
> thanks
That manpage for route(8) says
""" The other commands have the syntax:
route [-dnqtv] command [modifiers] destination gateway [netmask]"""
so your problem is that you are formatting things wrong. You want
route add xxx.169.58.0 xxx.xxx.72.2 255.255.255.158
Also that's a /really/ strange netmask,
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies