All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting serverip from DHCP server
@ 2021-07-01 15:56 Gregory Anders
  2021-07-02 13:39 ` Harald Seiler
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Anders @ 2021-07-01 15:56 UTC (permalink / raw)
  To: u-boot

(Re-sending now that I'm subscribed to the list)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting serverip from DHCP server
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Seiler @ 2021-07-02 13:39 UTC (permalink / raw)
  To: Gregory Anders, u-boot

Hi,

On Thu, 2021-07-01 at 15:56 +0000, Gregory Anders wrote:
> (Re-sending now that I'm subscribed to the list)
> 
> 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.

This is just a guess because I don't have a dhcpd server running, but with
dnsmasq we have this working without problems.  From a quick search, maybe
adding

    next-server 10.0.10.1;

might do the trick?

-- 
Harald


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Setting serverip from DHCP server
  2021-07-02 13:39 ` Harald Seiler
@ 2021-09-02 16:08   ` Gregory Anders
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory Anders @ 2021-09-02 16:08 UTC (permalink / raw)
  To: Harald Seiler; +Cc: u-boot



> On Jul 2, 2021, at 7:39 AM, Harald Seiler <hws@denx.de> wrote:
> 
> This is just a guess because I don't have a dhcpd server running, but with
> dnsmasq we have this working without problems.  From a quick search, maybe
> adding
> 
>    next-server 10.0.10.1;
> 
> m

I know this is two months later, but I *finally* got around to trying this and it does work! Thanks Harald! I’m not sure why I’ve never had to use this in the past, but now I know.

Greg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Setting serverip from DHCP server
@ 2021-06-30 17:22 Gregory Anders
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory Anders @ 2021-06-30 17:22 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-02 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2021-06-30 17:22 Gregory Anders

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.