Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Aug 2009 17:38:39 -0700
From:      Nerius Landys <nlandys@gmail.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Setting up LAN: no route to host
Message-ID:  <560f92640908081738m31ac75a5pf9f6c4822e427dae@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to set up a LAN that is isolated from the internet, and I
don't know what to put in /etc/rc.conf for certain variables.  I'm
running FreeBSD 7.1 with the latest patches.

So far my /etc/rc.conf file has the following lines:

defaultrouter="192.168.0.1" # I would like to leave this blank, but I
put something here anyways.
hostname="speedy.i"
ifconfig_fxp0="inet 192.168.0.254  network 255.255.255.0"
ifconfig_fxp0="up"


My /etc/hosts includes this line:

192.168.0.254 speedy.i speedy


Now when I am logged in to this machine and I "ping 192.168.0.254", I get:

ping: sendto: No route to host

I'm just trying to set up a LAN between a few computers, and actually,
I don't know what to put in the "defaultrouter" field in /etc/rc.conf.
 I've tried leaving it blank, but that didn't help.

By the way I will probably be having more questions about configuring
a home router, so please bear with me.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?560f92640908081738m31ac75a5pf9f6c4822e427dae>