From owner-freebsd-questions Mon Oct 23 17:34:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tahiti.cc.odu.edu (tahiti.server1.odu.edu [128.82.224.6]) by hub.freebsd.org (Postfix) with ESMTP id 4D0D337B479; Mon, 23 Oct 2000 17:34:41 -0700 (PDT) Received: from [10.3.2.31] (sd11-174.sd.odu.edu [128.82.11.174]) by tahiti.cc.odu.edu (8.9.3/8.9.3) with ESMTP id UAA21693; Mon, 23 Oct 2000 20:34:38 -0400 (EDT) Date: Mon, 23 Oct 2000 20:42:17 +0000 (GMT) From: Kherry Zamore X-Sender: dknj@jubilee.sd.odu.edu To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: gateway on different subnet In-Reply-To: <200010232035.e9NKZ1h04685@mass.osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 23 Oct 2000, Mike Smith wrote: > > Summary of the problem: > > > > Can't assign cable modem gateway (10.17.56.12) to interface > > ed0 with assigned IP (208.59.162.242) - "network unreachable". > > > > I called RCN (my cable provider) and asked them to give me > > a gateway on the same subnet; they said they "don't do that". > > Your gateway *must* be on a reachable subnet. That's all there is to it. > RCN has recently pulled a crack smoking move and made the gateways 10.x ip addresses on their cable modems. It caught me by surprise since I had just put up a new box and it refused to get on the internet. Anywho, the easiest way to fix it is to alias 10.254.254.1 (or some other bogus ip) to your public interface with a netmask of 0xff000000 and then set your default gateway as normal. % ifconfig ed0 ed0: flags=8843 mtu 1500 inet 216.164.35.237 netmask 0xffffff00 broadcast 216.164.35.255 inet 10.254.254.1 netmask 0xff000000 broadcast 10.255.255.255 ether 00:50:4e:00:cc:ff When I get home I'm probably going to switch to DSL, my sanity is worth more than low cost bandwidth. -= Kherry Zamore -=- (757) 683-7386 =- -= Resident Computer and Network geek/god =- -= Rogers Hall Main Room 324 -=- www.dknj.org =- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message