Date: Fri, 6 Apr 2001 01:16:25 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Vince Valenti <vince@blue-box.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Correct way to have a host on two networks Message-ID: <20010406011625.A28051@dan.emsphone.com> In-Reply-To: <Pine.BSF.4.33.0104051623270.78388-100000@kenny.blue-box.net>; from "Vince Valenti" on Thu Apr 5 16:28:09 GMT 2001 References: <Pine.BSF.4.33.0104051623270.78388-100000@kenny.blue-box.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010406011625.A28051>