Skip to main content
JYI
Associate II
Sep 26, 2023 8:18 PM UTC
Question

lwIP no hostname on DHCP server

Customized hardware with STM32H723 + LAN8740A for MII mode.

LWIP Settings:

#define NO_SYS 1

#define LWIP_DHCP 1 

#define LWIP_NETIF_HOSTNAME 1

The DHCP client, UDP and TCP server and ICMP(Ping) are all working fine.

But host name didn't show up on DHCP server (wired Linksys router with hostname as 'unknow').

Couldn't figure this issue out.

Any suggestions?

Thanks.

 

JYI

 

This topic has been closed for replies.

3 replies

LCE
Principal III
Sep 27, 2023 6:05 AM UTC

> But host name didn't show up on DHCP server

What do you exactly mean with "host name"?
For using something like "http://mySTM32server" instead of the IP address you need to activate DNS.

Bob S
Super User
Sep 27, 2023 4:37 PM UTC

> But host name didn't show up on DHCP server

Perhaps you are looking for the LWIP_NETIF_HOSTNAME option (which enables DHCP option 12 "host name" in DHCP requests)?

LCE
Principal III
Sep 28, 2023 5:50 AM UTC

Oops, DNS was going the other direction, right? My bad.