From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 18:11:16 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AA691065673 for ; Sun, 8 Jun 2008 18:11:16 +0000 (UTC) (envelope-from brennanma@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id B108C8FC18 for ; Sun, 8 Jun 2008 18:11:15 +0000 (UTC) (envelope-from brennanma@gmail.com) Received: by an-out-0708.google.com with SMTP id b33so448995ana.13 for ; Sun, 08 Jun 2008 11:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nKo30l/d8lMu4XG/iaMCWmcxik8ESPdEema/rAbhgrk=; b=Srs2hRrq5XSleDGb6fj2PcAE8UQeenkDXsszQZ+dhXpkcDd2NmJg/dtjw8gfC90PxB abQlPadMSpr0mK3cFnFD4mVyyU3/Av8Ym4eZHUnpnxKeXrwzJVnua6ba7uxbBrrx7NMm KrVnPKgqStsF/9+38Xjk/HxI6/KfIF2MFjDIs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WG0HjDNren8nQMXdhxB+OFaUfB/LTrT8IR6eFiJBFJa9fUAE4wv0XgURpIM6skvicd HA93ftxixnDptMNJRM/gGlVs+KYXa4Z+ce1SJOwhzhZ4zZofHJbTWdc3dwHxz1o9Tzwl v8AvEUKltvFhLfAM7lG4MvQYT2YeLulkeC/k4= Received: by 10.100.33.13 with SMTP id g13mr2536680ang.96.1212948674721; Sun, 08 Jun 2008 11:11:14 -0700 (PDT) Received: by 10.100.142.17 with HTTP; Sun, 8 Jun 2008 11:11:14 -0700 (PDT) Message-ID: <1c01b5070806081111u41251f7et9063008775ae1676@mail.gmail.com> Date: Sun, 8 Jun 2008 14:11:14 -0400 From: "Matt Brennan" To: "Svein Halvor Halvorsen" In-Reply-To: <484BEC67.2040500@lvor.halvorsen.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <484BEC67.2040500@lvor.halvorsen.cc> Cc: FreeBSD Questions Subject: Re: 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 18:11:16 -0000 Well, I can't be sure without seeing your entire routing table, but I would bet you need to do something more like this: route add -net 10.0.0.0/24 -iface ipw0 route add default 10.0.0.1 (or maybe route add default gw 10.0.0.1) If that doesn't work try giving us the output from your routing table (netstat -rn). -Matt On Sun, Jun 8, 2008 at 10:27 AM, Svein Halvor Halvorsen wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >