We are trying to get a new server running 18.04 LTS to connect to the internet, but no luck thus far. The router doesn't distribute DHCP, so we have a static IP assigned to the port the server is connected to. We tried following the instructions here: https://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu
That didn't work - still no network connection. Note that there was no file named 01-netcfg.yaml in /etc/netplan. There was another yaml file that was named 50-netcfg.yaml and that's the file we edited.
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
dhcp6: no
addresses: [204.xxx.xxx.108/25]
gateway4: 204.xxx.xxx.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
network: version: 2 renderer: networkd ethernets: eno1: dhcp4: no dhcp6: no addresses: [204.xxx.xxx.xxx/25] gateway4: 204.xxx.xxx.xxx nameservers: addresses: [8.8.8.8,8.8.4.4]
– Serdar Uckun Jun 11 '18 at 17:58ip a
, so that we can see how the system has configured the network. – AlexP Jun 11 '18 at 18:37sudo netplan apply
? – chili555 Jun 11 '18 at 18:38Second, here is what is returned by ip -a:
– Serdar Uckun Jun 11 '18 at 19:48sudo netplan apply
simply hangs. – Serdar Uckun Jun 11 '18 at 19:58sudeo netplan --debug apply
returns the following: https://paste.ubuntu.com/p/MqWSzGYDbp/ – Serdar Uckun Jun 11 '18 at 20:10ip addr show
give the correct IP address, 204.XXX.XXX.108? Can you ping the gateway? Can you ping 8.8.8.8? – chili555 Jun 11 '18 at 20:28ip addr show
still doesn't show the correct IP address. We cannot ping anything. We also changed the syntax of the yaml file to make it adhere to the Ubuntu server guide, but no luck. – Serdar Uckun Jun 12 '18 at 17:03