All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gregory Anders <greg@gpanders.com>
To: u-boot@lists.denx.de
Subject: Setting serverip from DHCP server
Date: Wed, 30 Jun 2021 17:22:41 +0000	[thread overview]
Message-ID: <YNyoYfJbO8F/mA13@gpanders.com> (raw)

Hi all,

I am running U-Boot on an embedded device that is connected via Ethernet 
to my workstation. The workstation is running dhcpd and U-Boot is able 
to successfully obtain an IP address via DHCP from the server. However, 
the `serverip` environment variable is not being set which prevents 
U-Boot from continuing to boot over the network. I have to manually 
enter `setenv serverip 10.0.10.1` each time.

How do I get the DHCP server to set the serverip variable? My dhcpd.conf 
file is quite simple:

     subnet 10.0.10.0 netmask 255.255.255.0 {
         option routers 10.0.10.1;
         range 10.0.10.2;
     }

I would have thought the 'option routers' line would do the trick, but 
apparently not. I've done a bit of searching online but haven't yet 
found anything helpful.

Thanks,

Greg

             reply	other threads:[~2021-06-30 18:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-30 17:22 Gregory Anders [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-01 15:56 Setting serverip from DHCP server Gregory Anders
2021-07-02 13:39 ` Harald Seiler
2021-09-02 16:08   ` Gregory Anders

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=YNyoYfJbO8F/mA13@gpanders.com \
    --to=greg@gpanders.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.