From owner-freebsd-questions Thu Jan 17 14:11:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.100.219]) by hub.freebsd.org (Postfix) with ESMTP id 2A85B37B400 for ; Thu, 17 Jan 2002 14:11:08 -0800 (PST) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.11.6/8.11.3) with ESMTP id g0HMB2c25537 for ; Thu, 17 Jan 2002 16:11:02 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200201172211.g0HMB2c25537@dc.cis.okstate.edu> To: questions@freebsd.org Subject: Adding Static Routes Date: Thu, 17 Jan 2002 16:11:02 -0600 From: Martin McCormick Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am trying to add a static route from an otherwise properly running FreeBSD system to a hidden network. After reading the man page on route, it appears that it isn't much different than what works under Solaris so I tried the following command: route add -static x.x.x.0 hiddennet-router-interface -hopcount 1 255.255.x.x x.x.x.0 = a network number and 255.255.x.x is a subnet mask. Nothing happens, but the command yields a response from the system of add host x.x.x.0: gateway [router address] This is a route to a whole network through a router. The system has a default router added in /etc/rc.conf and this all works perfectly and I want to continue using that route. The static route I want to add is not advertised so it must be manually added. Martin McCormick WB5AGZ Stillwater, OK OSU Center for Computing and Information Services Network Operations Group To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message