From owner-freebsd-net Fri Jan 7 6:46:44 2000 Delivered-To: freebsd-net@freebsd.org Received: from phoenix.aye.net (phoenix.aye.net [198.7.192.5]) by hub.freebsd.org (Postfix) with SMTP id EC52315780 for ; Fri, 7 Jan 2000 06:46:40 -0800 (PST) (envelope-from barrett@aye.net) Received: (qmail 3458 invoked by uid 1000); 7 Jan 2000 14:45:48 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 7 Jan 2000 14:45:48 -0000 Date: Fri, 7 Jan 2000 09:45:48 -0500 (EST) From: Barrett Richardson To: John Ioannidis Cc: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Subject: Re: Help, I'm stuck! Weird network/routing question. In-Reply-To: <200001062323.SAA29559@bual.research.att.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 6 Jan 2000, John Ioannidis wrote: > Here is the setup: > > Hosts alice and bob, running 3.4-STABLE, xl interfaces. > > on alice: > # ifconfig xl1 10.1.1.1 up netmask 255.255.255.255 > # ifconfig xl1 10.1.1.2 up netmask 255.255.255.255 > > > So, what's the right way to do this? (No, I can't have a shorter > subnet mask and put both interfaces on the same subnet! Needless to > say, what I've described is the simplified problem). There has to be > a way to tell the routing code "this address may not look like it's on > any of your subnets, but the way to reach it is to ARP for it through > interface xl1". There was definitely a way of doing this back in the > SunOS 4 (and before) days. > > Help? You could try publishing an arp entry for 10.1.1.2 on 10.1.1.1 (and vice versa on 10.1.1.1) using the MAC addresses physically associated with the respective IPs of course. The boxen may consider the arp entries of no consequence being that neither considers the other host to be on an attached subnet. As an alternative you could place the IPs on the loopback interfaces as aliases using the ethernet addresses as gateways to these IPs. - Barrett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message