From owner-freebsd-questions Thu Jun 8 11:35:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id E4C7B37C0C8 for ; Thu, 8 Jun 2000 11:35:08 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id WAA30701; Thu, 8 Jun 2000 22:38:02 +0200 Message-ID: <393FE771.CE2396FC@i-clue.de> Date: Thu, 08 Jun 2000 20:35:29 +0200 From: Christoph Sold Organization: i-clue interactive GmbH X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Massimo De Giorgi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: no route to host References: <000e01bfd128$ff7f67e0$f1b82397@oemcomputer> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Massimo De Giorgi wrote: > >> In /etc/host.conf I have just one line: > >> hosts > >> In /etc/hosts two lines: > >> 127.0.0.1 localhost......my_pc_name > >> 10.0.0.1 my_pc_name > >> Now, whichever "network" command I type in > >> ( I mean telnet, ping etc...) I get > >> no route to host > >> if I use the host address 10.0.0.1. > >> Things go smoothly with 127.0.0.1 and > >> my_pc_name. > >> Is there anything wrong ? > > >what is the address of the gateway? once you have that address > >type (as root): > >route add default > > There isn't any gateway. This is a standalone machine > running with "enable gateway"="NO" in rc.conf. Delete the 10.0.0.1 entry in /etc/host.conf. Standalone machines don't need no host interface, it would be down anyway. That's why the error message tells you "no route to host": The interface, if any, is down, thus it won't allow any packets through, thus the packets destined to network 10.0.0.0 can not reach the net the are destined for. No problem, only the report of the fact you are standalone. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message