Having trouble understanding why I don't get a connection on my static IP with netplan.
My ip is 98.xxx.xxx.xx My reserved address for my device is 192.168.1.33 Ethernet interface: enp1s0.
This is currently what my 50-cloud-init.yaml file looks like.
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: no
addresses: [98.xxx.xxx.xx/24]
gateway4: 192.168.1.33
nameservers: [8.8.8.8,8.8.4.4]
With this I am not able to ping google.com. I get a Temporary failure in name resolution error and when I try to ping 8.8.8.8 I get network is unreachable after applying my netplan. If I revert back to the generated yaml file I am able to ping both just fine after applying it.
After applying the netplan the ethernet interface does show my static ip as the address but I do not see my reserved address attached to it.
The spacing appears correct from my understanding for the yaml file. Only using spaces and no tabs and rebooting am still not able to get a connection.
Any suggestions or recommendations?