From owner-freebsd-questions Tue Dec 8 01:57:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA06796 for freebsd-questions-outgoing; Tue, 8 Dec 1998 01:57:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.AMS.Med.Uni-Goettingen.DE (ikarus.AMS.Med.Uni-Goettingen.DE [134.76.140.95]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA06786 for ; Tue, 8 Dec 1998 01:57:07 -0800 (PST) (envelope-from Sven.Anderson@AMS.Med.Uni-Goettingen.DE) Received: from sanders (helo=localhost) by mail.AMS.Med.Uni-Goettingen.DE with local-esmtp (Exim 1.92 #1) for freebsd-questions@freebsd.org id 0znJsj-0005Ry-00; Tue, 8 Dec 1998 10:56:37 +0100 Date: Tue, 8 Dec 1998 10:50:12 +0100 (MET) From: Sven Anderson To: Dan Busarow Subject: Re: Static host routes don't work? 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 -----BEGIN PGP SIGNED MESSAGE----- On Mon, 7 Dec 1998, Dan Busarow wrote: > On Mon, 7 Dec 1998, Sven Anderson wrote: > > why does nobody answer me? Is it my english (it's bad, i know), is it > > Your English isn't bad at all. I've seen native speakers write worse. > > > such a newbie-question not worth answering it (but then it should > > be in the FAQ), or has really nobody here ever used static host routes? > > > > It would be great, if you could give me at least a comment, which other > > resources/mailing-lists I should use to get a solution. > > I think there were no answers because > > a) you shouldn't be doing that (putting a 192 host on a 172 net) :) But you have to, if you have a private network behind the router, but you want some hosts to have "real" IPs. (In my case it's not a 192 net but a public IP net.) > b) you had a work around > c) you knew the correct answer (use a subnet) But when i have to use subnets in any case, why there is a -host option for the ifconfig-command? If I don't made a mistake, and it is a fact, that static single-host routes to directly connected interfaces only work by setting the ethernet-address, i think it is really a bug. After all the man-page states that it works, then it should work, shouldn't it? (I'm naive, I know) To make friends here: With Linux it works! ;-) Sven > > ---------- Forwarded message ---------- > > Date: Sat, 5 Dec 1998 10:17:05 +0100 (MET) > > From: Sven Anderson > > To: freebsd-questions@FreeBSD.ORG > > Subject: Static host routes don't work? > > > > Hi, > > > > I'm running 2.2.8-RELEASE, and I noticed, that static host routes to > > directly connected hosts don't seem to work correctly. I have the > > following Problem: > > > > 192.168.25.0/24 ------ed1 |FreeBSD| de0-------- 172.27.0.0/16 > > | > > ---- Host 192.168.25.224 > > > > where the addresses of the interfaces of the BSD-Box are: > > ed1: 192.168.25.223 > > de0: 172.27.10.254 > > > > For the single host I need a hostroute to de0, and i thought, this line > > should do the job: > > > > # route add -host 192.168.25.224 -interface 172.27.10.254 > > > > After that the routingtable looks fine so far: > > > > 192.168.25.224 172.27.10.254 UHS 0 0 de0 > > > > but it doesn't work, no arp-requests for 192.168.25.224 on de0. > > > > Because i was not sure, if it is a netmask-problem, I tried the same with > > an address out of 172.27.0.0/16, for example 172.27.1.1, which was routed > > correctly before, and from this moment on the address was unreachable. It > > seems that static host routes don't route but block, and no arp-requests > > happen anymore for that address. > > > > Then i tried the -interface-option with the real device-name: > > > > # route add -host 192.168.25.224 -interface de0 > > > > and it created a permanent arp-entry, but with the ether-address of the > > adapter of de0, again no arp-request was done. With arp -s I manually set > > the ether-address to that of the host, and, WOW, it works! But this can't > > be the way to do it, can it? I would like to have a solution, where I > > don't have to set the ether-address by hand but it is determined by an > > arp-request. > > > > Btw.: if I route a whole subnet (at least 2 IPs), there's no problem > > anymore, fine arp-requests, fine connects. > > > > I'm really confused, and from my point of view this is a bug, but maybe > > someone can explain me, what I'm doing wrong? > > > > Thanks in advance, > > > > Sven > > > > -- > > * email: sa@kki.org * fon.net: ++49-551-35430 > > * www: http://tuttle.home.pages.de/ * irc: tuttle > > "Macht verrueckt, was Euch verrueckt macht!" (Blumfeld) > > - -- * email: sa@kki.org * fon.net: ++49-551-35430 * www: http://tuttle.home.pages.de/ * irc: tuttle "Macht verrueckt, was Euch verrueckt macht!" (Blumfeld) -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 iQBVAwUBNmz2YI9smRlwmxeVAQGTLgIAkD1Cp+TadjFtCOi4wPbEac/cD7iZlqWQ ggT6saJcUVGNzPGvtrsdURHRSGDIyeQTpkzeAAbEODpWZZUM049TOg== =CQz6 -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message