From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 16:50:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F21B1065676 for ; Thu, 24 Apr 2008 16:50:46 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 6ACAC8FC14 for ; Thu, 24 Apr 2008 16:50:46 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (localhost [127.0.0.1]) by a.cs.okstate.edu (Postfix) with ESMTP id 8E40A154C46; Thu, 24 Apr 2008 11:50:45 -0500 (CDT) Message-ID: <4810BA63.5090905@cs.okstate.edu> Date: Thu, 24 Apr 2008 11:50:43 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: magalhj@yahoo.com.br References: <505569.92862.qm@web31602.mail.mud.yahoo.com> In-Reply-To: <505569.92862.qm@web31602.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Change gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 16:50:46 -0000 Written by Aguiar Magalhaes on 04/24/08 11:42>> > Hi list, > > I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've received the answer: > > # route flush > # route add default 10.0.253.1 > > route: writing to routing socket: Network is unreachable > > The gateway and the host are connected in the same switch > > How can I do it ? > > Aguiar your mask on 10.0.253.161 specifies the interfaces network spans addresses 10.0.253.160 - 10.0.253.167. 10.0.253.1 is not in that range.