Setting up LAN: no route to host

Gary Gatten Ggatten at waddell.com
Sun Aug 9 01:10:57 UTC 2009


Are you missing a quote on the ip address line?  What does ifconfig output?

----- Original Message -----
From: owner-freebsd-questions at freebsd.org <owner-freebsd-questions at freebsd.org>
To: FreeBSD Mailing List <freebsd-questions at freebsd.org>
Sent: Sat Aug 08 19:38:39 2009
Subject: Setting up LAN: no route to host

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.
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"





<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."
</font>



More information about the freebsd-questions mailing list