From owner-freebsd-net@FreeBSD.ORG Wed Oct 8 17:02:44 2003 Return-Path: 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 43E1B16A4B3 for ; Wed, 8 Oct 2003 17:02:44 -0700 (PDT) Received: from blake.polstra.com (dsl081-189-066.sea1.dsl.speakeasy.net [64.81.189.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB3D243FE5 for ; Wed, 8 Oct 2003 17:02:36 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (dsl081-189-067.sea1.dsl.speakeasy.net [64.81.189.67]) by blake.polstra.com (8.12.9p2/8.12.9) with ESMTP id h9902aOH000373 for ; Wed, 8 Oct 2003 17:02:36 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 08 Oct 2003 17:02:36 -0700 (PDT) From: John Polstra To: net@freebsd.org X-Bogosity: No, tests=bogofilter, spamicity=0.484362, version=0.14.5 Subject: routed(8) and static routes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 00:02:44 -0000 I'm trying for the first time to get routed(8) to do something useful, and it's got me stumped. The man page says: Static routes in the kernel table are preserved and included in RIP responses if they have a valid RIP metric (see route(8)). >From reading the sources, "valid RIP metric" seems to mean a nonzero hopcount. I have a static route for a VPN that I added like this: route -n add 192.168.0.0/16 192.168.198.51 -hopcount 1 But routed does not advertise the route. It advertises routes for all of the network interfaces, but does not advertise my static route. FWIW, I have the line "ripv2" in /etc/gateways to suppress the use of RIPv1, since RIPv1 cannot handle netmasks. Can somebody give me a clue? Thanks, John