I'm working on some K8's training, and I built a pair of Ubuntu VM's in VMware. KDE Neon to be specific.
I noticed this interesting anomoly.
Master:
pch@master:~$ hostname -i
127.0.1.1
Worker:
pch@worker:~$ hostname -i
192.168.0.157 172.17.0.1 fe80::20c:29ff:feb1:9de8
I even set the IP static in the GUI and disabled IPV6 rebooted and checked again. Same output... Not sure what's setting the info in hostname -i.
How can I make sure the IP is properly set so that hostname -i sees the real thing?