From owner-freebsd-questions Thu Apr 5 23:16:34 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 936A437B443 for ; Thu, 5 Apr 2001 23:16:31 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f366GPg29630; Fri, 6 Apr 2001 01:16:25 -0500 (CDT) (envelope-from dan) Date: Fri, 6 Apr 2001 01:16:25 -0500 From: Dan Nelson To: Vince Valenti Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Correct way to have a host on two networks Message-ID: <20010406011625.A28051@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: ; from "Vince Valenti" on Thu Apr 5 16:28:09 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Apr 05), Vince Valenti said: > Right now, I have a machine that I want to be on two networks. This is > what I have in my /etc/rc.conf: > > network_interfaces="fxp0 lo0" > ifconfig_fxp0="inet 199.2.205.6 netmask 255.255.255.0" > ifconfig_fxp0_alias0="inet 206.163.50.6 netmask 255.255.255.255" > defaultrouter="199.2.205.254" > > It seems to work, but I get messages like this from my kernel: > > arplookup 206.163.50.254 failed: host is not on local network > > Is there a way I can specify another default route for the second > network? What is the correct way to do this? The 255.255.255.255 netmask is only required when your alias IP is on the same subnet as your primary IP. Aliases that are on different subnets need the correct netmask. 255.255.255.0 is probably what you need. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message