Network problem in Ubuntu 18.04.1 Server
By Emily Wilson •
I just installed Ubuntu 18.04 live server edition ,while installing I configured two ethernet and everything worked fine,after the first reboot I cannot ping any address or connect to any network ,I tried netplan generate and apply , apply didn't work. Anyone know how to fix this problem ?
11 Answer
Netplan is very strict about spacing, indentation, etc. For example, this is acceptable:
ethernets: enp3s0:But this is not:
ethernets: enp3s0:You may gain some insights by consulting the example files; for instance:
cat /usr/share/doc/I suggest that you amend your yaml file to:
network: version: 2 renderer: networkd ethernets: eno1: addresses: - 10.10.1.64/24 gateway4: 10.10.1.1 nameservers: addresses: [8.8.8.8, 8.8.4.4]Follow with:
sudo netplan generate
sudo netplan apply 1