From owner-freebsd-questions Fri Feb 11 9:22:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (UCB-Async4-CRISCO.CRIS.NET [212.110.129.130]) by builder.freebsd.org (Postfix) with ESMTP id 32DDD4734 for ; Fri, 11 Feb 2000 09:22:02 -0800 (PST) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id TAA56533; Fri, 11 Feb 2000 19:21:15 +0200 (EET) (envelope-from ru) Date: Fri, 11 Feb 2000 19:21:15 +0200 From: Ruslan Ermilov To: Dimitar Peikov Cc: questions@FreeBSD.org Subject: Re: Routing problem Message-ID: <20000211192115.B49927@relay.ucb.crimea.ua> Mail-Followup-To: Dimitar Peikov , questions@FreeBSD.org References: <200002111626.SAA01682@www.koral.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <200002111626.SAA01682@www.koral.bg>; from Dimitar Peikov on Fri, Feb 11, 2000 at 06:26:39PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Redirected to -questions, nothing hackish] On Fri, Feb 11, 2000 at 06:26:39PM +0200, Dimitar Peikov wrote: > Hi, > I have the following problem and cant see where I wrong or there is another way to do it. > Problem: I have one segment in wich are connected different networks. in this case I try to use one workstation using Windows with alone IP -> let it be 192.168.1.1/32 and my freebsd uses 192.168.0.1/24 . The other Win I could setup to see this alone workstation using routing information but in my freebsd machine when I set using : > > route add -host 192.168.1.1 -netmask 255.255.255.255 -interface ed0 > > My arp table says that ed0 has IP 192.168.1.1 ????? > > If set using : > > route add -host 192.168.1.1 -netmask 255.255.255.255 192.168.0.1 > > My arp says nothing, but ping returns routing errors???? > In fact I cannot route alone IP trought interface. It have no sense but in my case I must use tricks doing that!!! > > Could someone can explain me how to solve that problem? I see that 2 Windowses in this configuration have ping between, but ping between freebsd and that Windows - no! > > Mitko > P.S.: I forgot that currently I use 3.1 release. > Put the following line in your /etc/rc.conf: ifconfig_ed0_alias0="inet 192.168.1.1" This should DTRT. Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message