From owner-freebsd-questions Mon Oct 28 4:50:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 537F637B401 for ; Mon, 28 Oct 2002 04:50:55 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F14A43E77 for ; Mon, 28 Oct 2002 04:50:50 -0800 (PST) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id A29B919906; Mon, 28 Oct 2002 14:50:44 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id g9SCsD858628; Mon, 28 Oct 2002 14:54:13 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (localhost [127.0.0.1]) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6) with ESMTP id g9SCofh3000210; Mon, 28 Oct 2002 14:50:41 +0200 (EET) (envelope-from simon@pm514-9.comsys.ntu-kpi.kiev.ua) Received: (from simon@localhost) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6/Submit) id g9SCoc0s000209; Mon, 28 Oct 2002 14:50:38 +0200 (EET) Date: Mon, 28 Oct 2002 14:50:38 +0200 (EET) Message-Id: <200210281250.g9SCoc0s000209@pm514-9.comsys.ntu-kpi.kiev.ua> From: Andrey Simonenko To: Christian M?nk Cc: freebsd-questions@freebsd.org Subject: Re: No route to host In-Reply-To: <20021028123310.13650.qmail@operamail.com.lucky.freebsd.questions> X-Newsgroups: lucky.freebsd.questions User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (FreeBSD/4.7-STABLE (i386)) 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 On Mon, 28 Oct 2002 12:33:31 +0000 (UTC) in lucky.freebsd.questions, Christian M?nk wrote: > Hello FreeBSD Team. > My name is Christian and I have a problem. > I looked through the FAQ and the docs about the prob. when you get the No route to host reply when trying to ping. But my nic is intact. I made some Kernel configurations cause I want this one PC act as a router. So I thought something with all the stuff I changed is wrong. So I # everything out in the rc.conf that might cause the problem. Even though, what I as a beginner don?t like is that there are so many examples out there about how to config your system to act as a router. Is there no main script that includes it all? Well so much for that one. > Hopefully you guys can help me, since I?m totally down cause I?m working on that prob. 4 days now. > Thanks in advance. Follow this steps: 1. Configure your kernel to see your NICs in dmesg(8) output. 2. Add "ifconfig_fxp0=inet 10.10.10.10 netmask 255.255.255.0" like strings to /etc/rc.conf file and check if your NICs have correct IP addresses. Use ifconfig(8) command for this. 3. Add default route for your computer with the defaultrouter parameter in /etc/rc.conf. If you use, for example, pppd(8), then read documentation for pppd(8) how to set default route. 4. Then try to send packets to some hosts no in your LAN. 5. Say your computer to be a router with the gateway_enable variable in /etc/rc.conf. 6. ... try to do above steps first. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message