Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2009 23:30:35 -0400
From:      David Horn <dhorn2000@gmail.com>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Wacky DHCP values that work in windows but not in FreeBSD
Message-ID:  <25ff90d60910122030r1f8511e9ued9535024fa3078a@mail.gmail.com>
In-Reply-To: <4AD3ABD0.7010603@FreeBSD.org>
References:  <4AD3ABD0.7010603@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 12, 2009 at 6:21 PM, Doug Barton <dougb@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25ff90d60910122030r1f8511e9ued9535024fa3078a>