lwIP no hostname on DHCP server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-26 1:18 PM
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
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-26 11:05 PM
> 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-27 9:37 AM
> 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)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-27 10:50 PM - edited ‎2023-09-27 11:03 PM
Oops, DNS was going the other direction, right? My bad.
