Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

(V2) incorrect hostname shown in console (in system/show) when using static IP address #432

Closed
lmdecroos opened this issue Jul 23, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@lmdecroos
Copy link

When using a static IP address, then the hostname is correct in the webgui and syslog.
But in the console the hostname is ESP-xxxxxx wheroff xxxxxx are the last 6 digits of the MAC address
MAC address: DC:4F:22:5E:96:9C
Hostname: ESP-5E969C

to reproduce:
go to wifi settings in the webgui
select static IP and provide the network settings
change the hostname to a name not starting with ems
restart the gateway
open telnet session
go to system
su
show

result the displayed hostname will be ESP-xxxxxx wheroff xxxxxx are the last 6 digits of the MAC address

tested on B5, B6 and B7

@lmdecroos lmdecroos added the bug Something isn't working label Jul 23, 2020
@proddy
Copy link
Collaborator

proddy commented Jul 23, 2020

Thanks for reporting. I couldn't reproduce with B6 but will try again.

@proddy
Copy link
Collaborator

proddy commented Jul 25, 2020

Ok, I reproduced this. The wifi hostname is not set when using a static IP so in system & show it will show the default one the ESP core gives you which is based on the MAC address. The console prompt is correct.

@proddy proddy changed the title (V2) incorrect hostname in console when using static IP adress (V2) incorrect hostname shown in console (in system/show) when using static IP address Jul 25, 2020
proddy added a commit that referenced this issue Jul 25, 2020
@proddy proddy closed this as completed Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants