From owner-freebsd-net Thu Jan 6 19: 4:42 2000 Delivered-To: freebsd-net@freebsd.org Received: from intranova.net (blacklisted.intranova.net [209.3.31.70]) by hub.freebsd.org (Postfix) with SMTP id 95E93156F9 for ; Thu, 6 Jan 2000 19:04:32 -0800 (PST) (envelope-from oogali@intranova.net) Received: (qmail 13884 invoked from network); 6 Jan 2000 21:54:45 -0000 Received: from hydrant.intranova.net (user51236@209.201.95.10) by blacklisted.intranova.net with SMTP; 6 Jan 2000 21:54:45 -0000 Date: Thu, 6 Jan 2000 21:51:04 -0500 (EST) From: Omachonu Ogali 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 Your netmask is probably causing problems. Try 255.0.0.0. Omachonu Ogali Intranova Networking Group 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 > # netstat -r -n > ... > 10.1.1.1/32 link#2 UC 0 0 xl1 > ... > # ping 10.1.1.1 > (yes, it pings fine) > # netstat -r -n > ... > 10.1.1.1 0:10:4b:63:80:33 UHLW 0 4 lo0 => > 10.1.1.1/32 link#2 UC 0 0 xl1 > ... > > So far, everything is fine. > > Do the same on bob; > > # ifconfig xl1 10.1.1.2 up netmask 255.255.255.255 > > bob can also ping himself. > > Now, how to ping bob from alice? > The obvious thing would be to say > > # route add -interface 10.1.1.2 10.1.1.1 > > which creates the following routing entry: > > 10.1.1.2 10.1.1.1 UHS 0 60 xl1 > > which of course doesn't work. > > 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? > > /ji > > -- > John Ioannidis * Secure Systems Research Department * AT&T Labs - Research > OUR COMMON BOND: Respect for Individuals * Dedication to Helping Customers > Highest Standards of Integrity * Innovation * Teamwork > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message