From owner-freebsd-questions Fri Feb 9 0:58:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tik2.ethz.ch (spr-tik2.ethz.ch [129.132.119.69]) by hub.freebsd.org (Postfix) with ESMTP id 443D237B503 for ; Fri, 9 Feb 2001 00:58:10 -0800 (PST) Received: from kom25.ethz.ch (kom25 [129.132.66.3]) by tik2.ethz.ch (8.8.8/8.8.8) with ESMTP id JAA28276 for ; Fri, 9 Feb 2001 09:58:08 +0100 (MET) Received: from localhost (flury@localhost) by kom25.ethz.ch (8.8.8/8.8.8) with ESMTP id JAA05643 for ; Fri, 9 Feb 2001 09:58:06 +0100 (MET) X-Authentication-Warning: kom25.ethz.ch: flury owned process doing -bs Date: Fri, 9 Feb 2001 09:58:06 +0100 (MET) From: Placi Flury X-Sender: flury@kom25 To: freebsd-questions@freebsd.org Subject: static routing (Freebsd 4.2) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I'm trying to set up static routes within a subnet (for some tests). The net-topology looks like: HA2<------>RA<------->RB<----.. \ / \ / ->RC<- | |(Interface xl2) where RA, RB and RC are the routers. I started to define my routing table with 'route'. On router RC this looks like: Destination Gateway Flags Refs Use Netif Expire localhost localhost UH 0 0 lo0 RB_RC 0:50:da:47:43:67 UHLS 1 0 xl1 HA2 RB_RC UGHS 0 0 xl2 .... The queer (and wrong) think hapens when I define that the route to 'HA2' has to use the gateway RB_RC (which is the interface of router RB to router RC), since packets with destination HA2 are sent to interface xl2, which points somewhere in Nirwana. To my questions: how can I explicitely force freebsd to avoid to assign a netinterface (Netif) to route HA2 when the gateway (with a differen Netif) is already defined in the routing table? Or is there any way to change the netinterface without modifying the route? Remark: what I already tried (unsuccessfully) on router RC: 1. route add -host HA2 RB_RC (corresponds to routing table above) 2. route add -host HA2 -iface xl1 (assigns directly a Mac-address, but this is wrong) Thanx a lot, Placi - +--------------shoot for the moon-------------------------+ | Placi Flury | | Tel: +41 1 63 27545 | | email: flury@tik.ee.ethz.ch | | | +----------even if you miss, you'll land among the stars--+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message