From owner-freebsd-net Tue Jul 3 5: 5:31 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 9055037B403 for ; Tue, 3 Jul 2001 05:05:22 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f63C4gw42133; Tue, 3 Jul 2001 15:04:42 +0300 (EEST) (envelope-from ru) Date: Tue, 3 Jul 2001 15:04:41 +0300 From: Ruslan Ermilov To: Iasen Kostoff Cc: freebsd-net@FreeBSD.ORG Subject: Re: adding a route to host via interface Message-ID: <20010703150441.B39090@sunbay.com> Mail-Followup-To: Iasen Kostoff , freebsd-net@FreeBSD.ORG References: <20010703105649.A6517@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from tbyte@tbyte.org on Tue, Jul 03, 2001 at 02:30:48PM +0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jul 03, 2001 at 02:30:48PM +0300, Iasen Kostoff wrote: > > > On Tue, 3 Jul 2001, Ruslan Ermilov wrote: > > > On Mon, Jul 02, 2001 at 05:40:07PM +0300, Iasen Kostoff wrote: > > > > > > Problem is that adding a route to host throw interface adds > > > inerface as gateway (iface's lladdr). And you should manualy change lladdr > > > of this route to the real lladdr. > > > > > > this is it: > > > > > > route add -host foo -iface bar > > > arp -s foo real_lladdr_of_foo > > > > > > Is that realy a problem or I'm missing something ? > > > > > Try this: > > > > route add -host foo -link bar:real_lladdr_of_foo -llinfo -interface > > > But if I don't know the lladdr - because now I should use tcpsump(1) with > -i iface -e to see the lladdr of the client and when they change their GW > computer or its Lan card I should do that again (and if am not around they > don't have inet ofcourse) but if they are connected on cisco router that > do not hapen because I'm not routing to lladdr but throw iface. > > Can that be fixed some how ? > I apparently lost the context here. What are you trying to do? You want the host ``foo'' to be resolved through ARP? If that is the case, this is somewhat tricky, but still possible: route add foo/32 -iface bar -cloning Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 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-net" in the body of the message