I'll do my best to provide as much information as possible, I'm still fairly new to linux, but I have Ubuntu Server 18.04.4 currently running my media server, and I'm trying to set a static IP.
I found plenty of tutorials online, I can get it to work fine by editing a file called 50-cloud-init.yaml
, and here are the settings that I had:
network:
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.2.46/18]
gateway4: 192.168.2.1
nameservers:
addresses: [192.168.2.1,1.1.1.1]
dhcp4-overrides:
hostname: starlight01
send-hostname: yes
use-hostname: yes
version: 2
Now that works perfectly fine, and I do the whole sudo netplan apply
thing, and I can browse my samba shares from by doing \\192.168.2.46\
however, I have a few applications that rely on the machine name, not IP, and for some reason, when it's a dynamic IP I can type \\starlight01\
, but it suddenly stops working when I use the machine/host name.
I would also like to add that every machine stops being able to access via the machine name.
When it has a static IP, I can ping by IP, and get a response, but pinging by machine name results in a timeout, but pinging with a Dynamic IP works fine for both.
I have also tried the following:
- rebooting my router, and associated switches
- rebooting the server
- dns flush on my windows machine
- rebooting my windows machine
- removing the
dhcp4-overrides
section of the said file
/18
CIDR and not a/24
for the network? A/18
makes the valid network192.168.0.1 - 192.168.63.254
machinename.local
orstarlight01.local
?