public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Udi Finkelstein <u-boot-users@udif.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] DHCP: u-boot vs. busybox
Date: Sun, 29 Aug 2004 01:01:45 +0200	[thread overview]
Message-ID: <41310ED9.3020001@udif.com> (raw)
In-Reply-To: <412CB9E3.7090002@imc-berlin.de>

Hi,

I ran into something similar lately. I don't remember the exact RFC 
terminology, but here it is:

When you send a DHCP request, there are 2 ways to specify your ID:
1. The MAC address field in the DHCP request.
2. A "client ID" tag in the DHCP option field.

After wasting a few hours with a cisco router to give me a specific IP 
address for each MAC address I had, I found out that:

1. Windows machines usually report their MAC address by prepending the 
ARP interface type (0x01 for Ethernet) to the MAC address and report 
this as the "Client ID".

2. U-boot simply uses the MAC address field.

Cisco routers have separate commands for specifying each type:

ip dhcp pool XXXX
    import all
    host 10.10.10.xxx 255.255.255.0
    client-identifier 0100.0c41.d584.3d
    client-name xxxxx

or:

ip dhcp pool XXXX
    import all
    host 10.10.10.xxx 255.255.255.0
    hardware-address 000c.41d5.843d
    client-name xxxxx

Hope this helps,
Udi

Steven Scholz wrote:

> Hi there,
> 
> I just noticed that my board get's different IPs from the DHCP server 
> depending on wether U-Boot or busybox udhcpc did the request.
> 
> The dhcp server log shows that they're using the same MAC:
> 
>  From U-Boot:
> DHCPDISCOVER from 00:a0:33:01:f9:97 via eth0
> DHCPOFFER on 10.0.10.220 to 00:a0:33:01:f9:97 via eth0
> DHCPREQUEST for 10.0.10.220 (10.0.2.9) from 00:a0:33:01:f9:97 via eth0
> DHCPACK on 10.0.10.220 to 00:a0:33:01:f9:97 via eth0
> 
>  From linux-2.4.27/busybox:
> DHCPDISCOVER from 00:a0:33:01:f9:97 via eth0
> DHCPOFFER on 10.0.10.174 to 00:a0:33:01:f9:97 via eth0
> DHCPREQUEST for 10.0.10.174 (10.0.2.9) from 00:a0:33:01:f9:97 via eth0
> DHCPACK on 10.0.10.174 to 00:a0:33:01:f9:97 via eth0
> 
> Doing several rebooting I still see the same.
> 
> Any idea how this could happen? I thought I would get the same IP fir 
> the same MAC as long as the lease is valid...
> 
> 

      parent reply	other threads:[~2004-08-28 23:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-25 16:10 [U-Boot-Users] DHCP: u-boot vs. busybox Steven Scholz
2004-08-25 18:52 ` Wolfgang Denk
2004-08-28 23:01 ` Udi Finkelstein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41310ED9.3020001@udif.com \
    --to=u-boot-users@udif.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox