From owner-freebsd-questions Fri Jun 29 3: 1:57 2001 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 6348F37B403 for ; Fri, 29 Jun 2001 03:01:51 -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 MAA08390; Fri, 29 Jun 2001 12:10:39 +0200 Message-ID: <3B3C5287.4452CDE2@i-clue.de> Date: Fri, 29 Jun 2001 12:03:51 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Michael Silver Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to recover from ''No route to host' without a reboot? References: <003501c10075$e626f150$0200000a@silvertriad> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Silver schrieb: > > I have a FreeBSD server (4.2) that is on an unreliable internet connection. > When the connection goes down, I get the expected 'no route to host' > message. > > The problem is, when the connection returns, I continue to get the 'no route > to host' error message. How can I set FreeBSD to recover from the lost > connection without a reboot? First, check all interfaces are up: ifconfig -a # ifconfig -a rl0: flags=8843 mtu 1500 ^^^^ This interface works inet 10.0.0.111 netmask 0xff000000 broadcast 10.255.255.255 inet6 fe80::2e0:7dff:fe95:8d29%rl0 prefixlen 64 scopeid 0x1 ether 00:e0:7d:95:8d:29 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UT P 10baseT/UTP 100baseTX fxp0: flags=8843 mtu 1500 ^^^ This one does not. To bring an interface back up ifconfig up. Next, check the route to the destination network is still there: Netstat -rn # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.0.1 UGSc 2 104586 fxp0 ^^^ U: This route is working Assuming the default route does not work, simply # route delete default # route add default 192.168.0.1 would do the trick. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message