From owner-freebsd-questions Mon Oct 14 22:33:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EC6C37B401 for ; Mon, 14 Oct 2002 22:33:39 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id A06AB43EAF for ; Mon, 14 Oct 2002 22:33:35 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from asterix (ndf-dial-196-30-223-58.mweb.co.za [196.30.223.58]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Tue, 15 Oct 2002 07:33:29 +0200 Message-ID: <009901c2740c$a42c6e40$0200000a@perimeter.co.za> From: "Patrick O'Reilly" To: "FreeBSD Question List" , "Firsto Lasto" References: Subject: Re: route settings in rc.conf - question, with details. Date: Tue, 15 Oct 2002 07:35:10 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Firsto Lasto" > > Hi, > > I have a system with IPs assigned from 192.168.0.0/24 and 192.168.1.0/24 > > Right now I have this in my rc.conf: > > defaultrouter="10.10.10.10" > ifconfig_fxp0="inet 192.168.0.1 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 192.168.0.2 netmask 255.255.255.255" > ifconfig_fxp0_alias1="inet 192.168.1.1 netmask 255.255.255.255" > > So, as you can see I have one default route, and both /24s use that single > 10.10.10.10 as the default router. But, because I have simply added the > 192.168.1.1 IP as one more plain old alias, I now get this in my logs: > > /kernel: arplookup 10.10.10.10 failed: host is not on local network > > So, how do I add 192.168.1.1 as an alias, without adding another > defaultrouter, since my current defaultrouter setting is already correct ? > The problem is not with the aliases - it is (as the message says) because the default router is not on a local network. If the router is attached via fxp0, then try adding an alias like this: ifconfig_fxp0_alias2="inet 10.10.10.1 netmask 255.255.255.0" Then your system will know which interface to use to talk to 10.10.10.10. --- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message