[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-newbies
Subject: Re: route
From: "Nick Guenther" <kousue () gmail ! com>
Date: 2008-01-16 11:09:47
Message-ID: 98f5a8830801160309id250a71i37e315b92caee303 () mail ! gmail ! com
[Download RAW message or body]
On Jan 16, 2008 5:56 AM, Pau Amaro-Seoane <vim.unix@googlemail.com> 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
Openbsd-newbies@sfobug.org
http://mailman.theapt.org/listinfo/openbsd-newbies
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic