From owner-freebsd-net@FreeBSD.ORG Mon Oct 12 23:25:58 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F1C81065672 for ; Mon, 12 Oct 2009 23:25:58 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outl.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id E764F8FC0A for ; Mon, 12 Oct 2009 23:25:57 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id DE67CB4CBA; Mon, 12 Oct 2009 16:25:57 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 30CF92D6011; Mon, 12 Oct 2009 16:25:57 -0700 (PDT) Message-ID: <4AD3BB07.3070109@elischer.org> Date: Mon, 12 Oct 2009 16:25:59 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Doug Barton References: <4AD3ABD0.7010603@FreeBSD.org> <4AD3B4E3.2090406@elischer.org> <17838240D9A5544AAA5FF95F8D52031606D020C7@ad-exh01.adhost.lan> <4AD3B9FB.4010205@FreeBSD.org> In-Reply-To: <4AD3B9FB.4010205@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Michael K. Smith - Adhost" , freebsd-net@freebsd.org Subject: Re: Wacky DHCP values that work in windows but not in FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2009 23:25:58 -0000 Doug Barton wrote: > Michael K. Smith - Adhost wrote: >>> -----Original Message----- >>> From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- >>> net@freebsd.org] On Behalf Of Julian Elischer >>> Sent: Monday, October 12, 2009 4:00 PM >>> To: Doug Barton >>> Cc: freebsd-net@freebsd.org >>> Subject: Re: Wacky DHCP values that work in windows but not in FreeBSD >>> >>> Doug Barton wrote: >>>> Howdy, >>>> >>>> I usually have a wireless router connected directly to the >> AT&T/Yahoo >>>> DSL modem but last night I wanted to do some debugging so I plugged >>> my >>>> laptop directly into the modem (after powering off the modem, etc.). >>>> >>>> The values I got back from DHCP not only don't make sense, they >>> didn't >>>> work in FreeBSD at all. Dual-booting to Windows showed that the >>> values >>>> I saw from DHCP were "correct," and somehow they managed to work. >>>> Taking a closer look at the router after I plugged it back in showed >>>> the same. >>>> >>>> Dhcp Enabled. . . . . . . . . . . : Yes >>>> Autoconfiguration Enabled . . . . : Yes >>>> IP Address. . . . . . . . . . . . : 76.212.147.xxx >>>> Subnet Mask . . . . . . . . . . . : 255.255.0.0 >>>> Default Gateway . . . . . . . . . : 151.164.184.xxx >>> huh? >>> >>> only way this could work would be if it was marked as "point to point" >>> I think.. >> That could be a primary IP address on an interface on which your 76 >> address is a sub interface. > > Can you specify what you mean by 'that'? > >> The interface will do proxy-arp when a >> traffic request comes in. Or something else! I'm not sure if this will >> work, but you could actually hard code your default gateway with a >> -hopcount 2 (or higher) and see if that works. I've not tried it on a >> live machine. Something like route add default 151.164.184.xxx >> -hopcount 5. You may have to delete the DHCP-assigned entry first. > > Ah, I didn't know about -hopcount, thanks. There was no default route > installed at all when I booted. I tried 'route add default 151...' > even though I was sure it wouldn't work, and I was not disappointed. > > Doug > also not sure if you can add a -iface argument to make your default route include the correct interface .