From owner-freebsd-questions@FreeBSD.ORG Mon Feb 5 08:09:33 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6873616A403 for ; Mon, 5 Feb 2007 08:09:33 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from wmail.teledomenet.gr (wmail.teledomenet.gr [213.142.128.16]) by mx1.freebsd.org (Postfix) with ESMTP id 27D4513C461 for ; Mon, 5 Feb 2007 08:09:33 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from iris (unknown [192.168.1.71]) by wmail.teledomenet.gr (Postfix) with ESMTP id C21361CB676; Mon, 5 Feb 2007 09:56:48 +0200 (EET) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Mon, 5 Feb 2007 10:12:17 +0200 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702051012.18339.nvass@teledomenet.gr> Cc: Thiago Esteves de Oliveira Subject: Re: Routed and netmask... 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: Mon, 05 Feb 2007 08:09:33 -0000 On Saturday 03 February 2007 22:08, Thiago Esteves de Oliveira wrote: > Hi, > > I'm using "FreeBSD 6.2 Stable" with routed to connect networks(gateway).... > > > THE INTERNET > | > | > -------------------------------- > | eee.eee.eee.0/26 | > -------------------------------- > | > | > eee.eee.eee.11/26 > ROUTER > iii.iii.iii.1 > | > | > -------------------- > | iii.iii.iii.0/24 | "My Network" > -------------------- > > > The problem... > > The system is routing, but only to iii.iii.iii.0/26 . > > Look... my rc.conf > > ifconfig_em0="inet iii.iii.iii.1 netmask 255.255.255.0" > ifconfig_sk0="inet eee.eee.eee.11 netmask 255.255.255.192" > > defaultrouter="eee.eee.eee.1" > router_enable="YES" > router_flags="-s" > gateway_enable="YES" > router="/sbin/routed" > routed uses by default ripv1, which is clasful. That means that your net/26 surely won't work. I doubt your other_net/24 is a C class network, (from 192.0.0.0/24 to 223.255.255.0/24). Use explicitly ripv2("-P ripv2") and see what's going on. You can use rtquery to query routed. Check the neighbour routeds as well. Be sure to check the in-kernel routing table using "netstat -r". Hope this helps, Nikos