From owner-freebsd-net@FreeBSD.ORG Fri Nov 25 14:37:24 2005 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D364B16A41F for ; Fri, 25 Nov 2005 14:37:24 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38FE043D46 for ; Fri, 25 Nov 2005 14:37:23 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 4E507773; Fri, 25 Nov 2005 09:37:41 -0500 (EST) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id 1BD448C; Fri, 25 Nov 2005 09:37:40 -0500 (EST) Received: from lists by mappit.local.linnet.org with local (Exim 4.54 (FreeBSD)) id 1EfehR-000PkH-0x; Fri, 25 Nov 2005 14:37:17 +0000 Date: Fri, 25 Nov 2005 14:37:17 +0000 From: Brian Candler To: "Ricardo A. Reis" Message-ID: <20051125143716.GA98953@uk.tiscali.com> References: <4385EA35.9080705@yahoo.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4385EA35.9080705@yahoo.com.br> User-Agent: Mutt/1.4.2.1i Cc: net@freebsd.org Subject: Re: Bug in routing tables ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2005 14:37:24 -0000 On Thu, Nov 24, 2005 at 02:28:37PM -0200, Ricardo A. Reis wrote: > I insert this route in my workstation for network test, > > #route add -net 200.144.xx.xx 255.255.254.0 172.22.x.x Linux user I bet ;-) For FreeBSD you need: #route add -net 200.144.xx.xx -netmask 255.255.254.0 172.22.x.x > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 200.144.xx.xxx UGS 1 13407 rl0 > 127.0.0.1 127.0.0.1 UH 0 46 lo0 > 136.16&0xac160181 255.255.254.0 UGS 0 34 rl0 As you can see, 255.255.254.0 was interpreted as the gateway, not the netmask.