From owner-freebsd-questions Wed Jan 2 14: 2:45 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 9859737B405 for ; Wed, 2 Jan 2002 14:02:42 -0800 (PST) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.11.3/8.11.3) with ESMTP id g02M2ad55264 for ; Wed, 2 Jan 2002 16:02:37 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200201022202.g02M2ad55264@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Subject: Adding Static Routes Specifically for fxp1 Date: Wed, 02 Jan 2002 16:02:36 -0600 From: "Martin G. 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 use the second Ethernet port on a FreeBSD system to add a static route to a special network which is not generally accessible to the world. The router that serves as the gateway to this network looks for traffic from a particular IP address so not just any system can get through. The primary interface on the FreeBSD system in question is the wrong address, but I can configure fxp1 to be the correct address necessary to communicate. Is there any way to put the desired local interface in to the command so that the FreeBSD system will send the packets to this special network via fxp1 instead of fxp0 which it normally wants to use? My command right now looks like: route add -static hidden_net hidden_router -hopcount 1 255.255.255.0 The man page for route appears to not have any way to specify the local network interface to use, but I have missed the obvious before. Many thanks for any constructive suggestions. Martin McCormick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message