From owner-freebsd-net@FreeBSD.ORG Tue Nov 3 17:15:12 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 D139810656C0 for ; Tue, 3 Nov 2009 17:15:12 +0000 (UTC) (envelope-from ask@develooper.com) Received: from x8.develooper.com (mbox1.develooper.com [207.171.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id A11018FC1E for ; Tue, 3 Nov 2009 17:15:12 +0000 (UTC) Received: (qmail 30507 invoked from network); 3 Nov 2009 17:15:09 -0000 Received: from gw.develooper.com (HELO embla.bn.dev) (ask@mail.dev@64.81.84.140) by smtp.develooper.com with ESMTPA; 3 Nov 2009 17:15:09 -0000 Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: <26570.83.206.131.26.1257265307.squirrel@webmail.esigetel.fr> Date: Tue, 3 Nov 2009 09:15:08 -0800 Content-Transfer-Encoding: 7bit Message-Id: References: <36028DC7-4A90-4680-83ED-301FBE15F09C@develooper.com> <26570.83.206.131.26.1257265307.squirrel@webmail.esigetel.fr> To: "JASSAL Aman" X-Mailer: Apple Mail (2.1076) Cc: freebsd-net@freebsd.org Subject: Re: DHCP client not getting IP address from Time Warner 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, 03 Nov 2009 17:15:12 -0000 On Nov 3, 2009, at 8:21, JASSAL Aman wrote: > Hello, > > The logs display something that I find very disturbing. > In the dhcpdump log, the DHCPDISCOVER message your interface sends an > erroneous MAC address, there is a "01:" that is added in front of the > actual MAC address of your interface. What is sent in the discover > message > is "01:00:..." instead of "00:00:...". Hi Aman, Yeah - I should have pointed that out. I tried forcing it to be correct with interface "vr1" { send dhcp-client-identifier 00:00:24:c9:23:c1; } to no effect. http://dl.getdropbox.com/u/25895/dhcp/dhcp-freebsd-2.txt > Then what happens explains itself : the DHCP server will send a > DHCPOFFER > by using the requesting client's MAC address, but since the given MAC > address is wrong, he broadcasts it (which I don't think is the > behaviour > that is expected in normal cases...). I thought the broadcasts were misguided responses to me, too, at first -- but looking further I think it's just broadcasting when it's giving (or not) IPs to other clients. I've no idea why it does that. I only included one, but in http://dl.getdropbox.com/u/25895/dhcp/dhcp-osx.txt you can see that on OS X I get the weird replies to ff:ff:ff:ff:ff:ff, too. I also noticed that OS X adds two extra options in the request: OPTION: 57 ( 2) Maximum DHCP message size 1500 OPTION: 51 ( 4) IP address leasetime 7776000 (12w6d) Just to test how can I make dhclient add those, too? > I think this is also why the client doesn't emit a DHCPREQUEST > (which is > emitted by the client to confirm that it is choosing the proposed > settings > from the server, and implicitly turning down any other offers made by > other servers). > > I'll look into it when I get back home (at work right now). If > possible : > could you try to connect your Time Warner cable with another > interface ? > Or the same one as the one you used under Mac OS X (that way we > would see > if we get the same behaviour, regardless of the network interface > chosen) > ? The Soekris box only has vr interfaces; the OS X NIC is in my laptop so unless I install FreeBSD on there I won't be able to test that. :-) I did actually try one of the other vr interfaces on the Soekris box with the same result (they work fine with isc-dhcp running on another FreeBSD box). - ask