Date: Thu, 24 Apr 2008 11:52:27 -0500 From: Reid Linnemann <lreid@cs.okstate.edu> To: magalhj@yahoo.com.br Cc: freebsd-questions@freebsd.org Subject: Re: Change gateway Message-ID: <4810BACB.5030802@cs.okstate.edu> In-Reply-To: <4810BA63.5090905@cs.okstate.edu> References: <505569.92862.qm@web31602.mail.mud.yahoo.com> <4810BA63.5090905@cs.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Written by Reid Linnemann on 04/24/08 11:50>> > Written by Aguiar Magalhaes on 04/24/08 11:42>> >> Hi list, >> >> 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 >> >> How can I do it ? >> >> Aguiar > > your mask on 10.0.253.161 specifies the interfaces network spans > addresses 10.0.253.160 - 10.0.253.167. 10.0.253.1 is not in that range. oops. the network spans 10.0.253.160 - 10.0.253.191, 32 - 27 is 5 bits, not 3 =)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4810BACB.5030802>