From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 14:28:06 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56BA910656C1 for ; Sun, 8 Jun 2008 14:28:06 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from bene1.itea.ntnu.no (bene1.itea.ntnu.no [IPv6:2001:700:300:3::56]) by mx1.freebsd.org (Postfix) with ESMTP id 88ABB8FC1C for ; Sun, 8 Jun 2008 14:28:05 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 5584416C7A1 for ; Sun, 8 Jun 2008 16:28:03 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by bene1.itea.ntnu.no (Postfix) with SMTP id ADD5716C6C4 for ; Sun, 8 Jun 2008 16:27:55 +0200 (CEST) Received: (qmail 66315 invoked by uid 88); 8 Jun 2008 16:27:50 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Sun, 08 Jun 2008 16:27:50 +0200 Message-ID: <484BEC67.2040500@lvor.halvorsen.cc> Date: Sun, 08 Jun 2008 16:27:51 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.9 (X11/20080315) MIME-Version: 1.0 To: questions@freebsd.org X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Debian amavisd-new at bene1.itea.ntnu.no Cc: Subject: Help with default route X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 14:28:06 -0000 Hi! I usually use the wired network at home, in which everything gets configured automatically as soon as I attach the cable to my network card. However, when using the wireless network, I need to run # route add default -iface ipw0 This will give me a route to the gateway (10.0.0.1), and I can ping the gateway, as well as other machines on our local network. But if I try to connect to anything outside of 10/24, I get a "no route to host" error. If I manually add a route, with # route add x.y.z.t 10.0.0.1 I can connect to that host. If I change my default route to anything but "-iface ipw0" I cannot connect to the gateway (10.0.0.1). I cannot keep adding routes to all hosts I need to connect to. I've solved the problem for web usage, by running a proxy on another machine on the local network (that's reachable) What am I doing wrong? I don't think I have a thorough understanding of network routes. Svein Halvor