-1
~# sudo netplan apply
/etc/netplan/01-netcfg.yaml:16:18: Error in network definition: address '8.8.8.8' is missing /prefixlength
      addresses: [8.8.8.8,8.8.4.4]
                 ^
1
network:
 version: 2
 ethernets: {}
 renderer: networkd
 ethernets:
  ens160:
  dhcp4: no
  addresses: [206.80.236.251/29]
  gateway4: 206.80.236.249
  nameservers: 
    addresses: [8.8.8.8,8.8.4.4]

Make sure you are spacing correctly at exactly this stage :

nameserver 

should be aligned with gateway & addresses while spacing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.