Date: Tue, 15 Oct 2002 07:35:10 +0200 From: "Patrick O'Reilly" <bsd@perimeter.co.za> To: "FreeBSD Question List" <freebsd-questions@freebsd.org>, "Firsto Lasto" <firstolasto@hotmail.com> Subject: Re: route settings in rc.conf - question, with details. Message-ID: <009901c2740c$a42c6e40$0200000a@perimeter.co.za> References: <F18sH1XbR7SsyZ06pCq00013298@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Firsto Lasto" <firstolasto@hotmail.com> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009901c2740c$a42c6e40$0200000a>