cancel
Showing results for 
Search instead for 
Did you mean: 

lwIP no hostname on DHCP server

JYI
Associate II

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

 

3 REPLIES 3
LCE
Principal

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
Principal

> 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

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