From owner-freebsd-questions Mon Dec 16 11:54:40 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 778FD37B401 for ; Mon, 16 Dec 2002 11:54:38 -0800 (PST) Received: from almso2.proxy.att.com (almso2.att.com [192.128.166.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45B6343E4A for ; Mon, 16 Dec 2002 11:54:37 -0800 (PST) (envelope-from jwb@homer.att.com) Received: from ulysses.homer.att.com ([135.205.193.8]) by almso2.proxy.att.com (AT&T IPNS/MSO-4.0) with ESMTP id gBGJsaFY012314; Mon, 16 Dec 2002 14:54:36 -0500 (EST) Received: from akiva.homer.att.com (akiva.homer.att.com [135.205.198.103]) by ulysses.homer.att.com (8.9.3/8.9.3) with ESMTP id OAA14266; Mon, 16 Dec 2002 14:54:35 -0500 (EST) Received: from akiva.homer.att.com (localhost [127.0.0.1]) by akiva.homer.att.com (8.11.6+Sun/8.9.3) with ESMTP id gBGJsZL00622; Mon, 16 Dec 2002 14:54:35 -0500 (EST) Message-Id: <200212161954.gBGJsZL00622@akiva.homer.att.com> X-Mailer: exmh version 2.5-CVS 11/08/2002 with nmh-1.0.4 To: Marco Radzinschi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: gateway on different subnet In-reply-to: Your message of "Mon, 16 Dec 2002 14:46:12 EST." <20021216144222.N12897-100000@radzinschi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Dec 2002 14:54:34 -0500 From: "J. W. Ballantine" 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 When I do the route add default, I get: tinlizzie# route -v add -net default 10.17.47.37 u: inet 0.0.0.0; u: inet 10.17.47.37; u: inet 0.0.0.0; RTM_ADD: Add Route: len 128, pid: 0, seq 1, errno 0, flags: locks: inits: sockaddrs: default 10.17.47.37 default route: writing to routing socket: Network is unreachable add net default: gateway 10.17.47.37: Network is unreachable ---------- In Response to your message ------------- > Date: Mon, 16 Dec 2002 14:46:12 -0500 (EST) > To: "J. W. Ballantine" > From: Marco Radzinschi > Subject: Re: gateway on different subnet > > > On Mon, 16 Dec 2002, J. W. Ballantine wrote: > > > Hi, > > > > In order to save the internet address space, my cable co has setup their > > network with a live address for my > > PC but an address on a private 10.0.0.0 network for the cable modem. > > Now of course, this is also the > > gateway and dhcp server. The problem is trying to get FreeBSD to use > > this private address as the gateway for > > the live address. This config works for windows and they claim mac > > OS, but I can't get it to work for FreeBSD. I've tried ifconfig > > default, but that returns NO ROUTE TO HOST, and I've thougth about using > > an alias on the > > NIC, but that would send it out with the private network address and not > > be able to find its way home. > > > > Any of you network wizards out there have the proper spell to get this > > working??? > > > > Thanks > > > > Jim Ballantine > > As lnog as your internal subnet is different from the cable modem's > subnet, you should be fine, as the DHCP client ought to set up the default > route for you. > > Otherwise, "route add default " should do it. It is my understanding > that the default route should not be the cable modem though, since it is > supposed to act like a bridge. > > AT least this is how it works for me, except that the cable modem has a > 192.168.100.* address as well as a 10/8, but I don't have either as a > default route. > > Marco Radzinschi > E-Mail: marco@radzinschi.com > > Mon Dec 16 14:42:22 EST 2002 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message