Date: Thu, 24 Apr 2008 12:45:41 -0400 From: Steve Bertrand <iaccounts@ibctech.ca> To: magalhj@yahoo.com.br Cc: freebsd-questions@freebsd.org Subject: Re: Change gateway Message-ID: <4810B935.3050509@ibctech.ca> In-Reply-To: <505569.92862.qm@web31602.mail.mud.yahoo.com> References: <505569.92862.qm@web31602.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've received the answer: > > # route flush > # route add default 10.0.253.1 > > route: writing to routing socket: Network is unreachable > > The gateway and the host are connected in the same switch Even though the physical connection is the same, the .1 address is in a different subnet entirely than .161, due to the /27 prefix length. 10.0.253.160/27 encompasses 161-190. It's a good thing FreeBSD breaks in this case ;) You will need to change your prefix length to /24 on the host, or add a secondary IP from the 160/27 range to the gateway to make this work. Regards, Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4810B935.3050509>