From owner-freebsd-net@FreeBSD.ORG Tue Oct 13 03:30:36 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 21BBC1065672 for ; Tue, 13 Oct 2009 03:30:36 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-yw0-f197.google.com (mail-yw0-f197.google.com [209.85.211.197]) by mx1.freebsd.org (Postfix) with ESMTP id D54EF8FC15 for ; Tue, 13 Oct 2009 03:30:35 +0000 (UTC) Received: by ywh35 with SMTP id 35so31572680ywh.7 for ; Mon, 12 Oct 2009 20:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DzQodQCMGpiWMsFoFSzhnce09MZ8dfKHtX+Lc98oaxQ=; b=ZRbnGogV+ni4gHDBcRXluhTFnBfjDRUNlSb+m/bb2ca8BbJD30QAL266PHBeA9PV2o AEVssse234TOaO8k/tIoJ/gqhMUujWRl67+49lAcn8pDK2Nnm12GDYdQH+0vRLxGM68i Lwzvb+NL7z8+yQLYzDuQIHRx+PXqF9tKYZcII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Oe5lYWiItCyRFtf3nddeR3/qVaTcdPGOeJdToVsksvU8fP64Ac0gkwp1IlJuQCKzeP RUM9OAAEdSMSgvVRBCJeqBnQujQbwLaCHay8yWtt+QxWJsnmZ/matyrri2uDcV0IfVCJ kCRHEAWI33rYng4mSpAUnuvS/NE7Q385jrors= MIME-Version: 1.0 Received: by 10.101.113.12 with SMTP id q12mr6206019anm.124.1255404635108; Mon, 12 Oct 2009 20:30:35 -0700 (PDT) In-Reply-To: <4AD3ABD0.7010603@FreeBSD.org> References: <4AD3ABD0.7010603@FreeBSD.org> Date: Mon, 12 Oct 2009 23:30:35 -0400 Message-ID: <25ff90d60910122030r1f8511e9ued9535024fa3078a@mail.gmail.com> From: David Horn To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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: Tue, 13 Oct 2009 03:30:36 -0000 On Mon, Oct 12, 2009 at 6:21 PM, 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. > > =A0 =A0 =A0 =A0Dhcp Enabled. . . . . . . . . . . : Yes > =A0 =A0 =A0 =A0Autoconfiguration Enabled . . . . : Yes > =A0 =A0 =A0 =A0IP Address. . . . . . . . . . . . : 76.212.147.xxx > =A0 =A0 =A0 =A0Subnet Mask . . . . . . . . . . . : 255.255.0.0 > =A0 =A0 =A0 =A0Default Gateway . . . . . . . . . : 151.164.184.xxx > =A0 =A0 =A0 =A0DHCP Server . . . . . . . . . . . : 192.168.1.xxx > =A0 =A0 =A0 =A0DNS Servers . . . . . . . . . . . : 192.168.1.xxx > > Can anyone tell me how they managed to get this to work in Windows, > and suggest where to look to get it working in FreeBSD? > > > Doug > Without seeing the actual tcpdump of the dhcp packets, I would guess that this is the Classless Static Route option in DHCPv4 (option 121). See: http://www.rfc-editor.org/rfc/rfc3442.txt http://www.iana.org/assignments/bootp-dhcp-parameters/ But tcpdump before dhclient initialization of the interface should show what options are in play (I could be wrong on option 121) tcpdump -vvv -i em0 port bootpc Good Luck. ---Dave H