From owner-freebsd-questions@FreeBSD.ORG Thu Apr 24 16:52:30 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 8FEBC106566B for ; Thu, 24 Apr 2008 16:52:30 +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 8B3BA8FC1A for ; Thu, 24 Apr 2008 16:52:30 +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 D2D80154CA9; Thu, 24 Apr 2008 11:52:29 -0500 (CDT) Message-ID: <4810BACB.5030802@cs.okstate.edu> Date: Thu, 24 Apr 2008 11:52:27 -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> <4810BA63.5090905@cs.okstate.edu> In-Reply-To: <4810BA63.5090905@cs.okstate.edu> 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:52:30 -0000 Written by Reid Linnemann on 04/24/08 11:50>> > 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. oops. the network spans 10.0.253.160 - 10.0.253.191, 32 - 27 is 5 bits, not 3 =)