From owner-freebsd-questions Fri Feb 9 9:12:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 9921237B8D8 for ; Fri, 9 Feb 2001 08:19:01 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f19Gel856548; Fri, 9 Feb 2001 10:40:47 -0600 (CST) (envelope-from nick@rogness.net) Date: Fri, 9 Feb 2001 10:40:47 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Placi Flury Cc: freebsd-questions@FreeBSD.ORG Subject: Re: static routing (Freebsd 4.2) In-Reply-To: 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 On Fri, 9 Feb 2001, Placi Flury wrote: > > Hello, 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. > Why is the route for H2 already pointing out xl2 ? WHat is your IP addressing scheme? > 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? > I don't know what you are trying to do with the details you provided. Does HA2 reside on a directly connected interface as well as hanging off the RA network. > 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) > #1 should work fine. Make sure you add a route in RB->RA for the host HA2. Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message