I'd like to setup a static IP on Kubuntu 17.10 for my desktop PC.

enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet  netmask  broadcast
    inet6 fe80::71e0:527e:96cd:4128  prefixlen 64  scopeid 0x20<link>
    ether 70:85:c2:41:08:d0  txqueuelen 1000  (Ethernet)
    RX packets 12849  bytes 4063036 (4.0 MB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 10032  bytes 1116381 (1.1 MB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet  netmask
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 1000  (Lokale Schleife)
    RX packets 854  bytes 69858 (69.8 KB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 854  bytes 69858 (69.8 KB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Working interfaces:

auto lo
iface lo inet loopback

Not working interfaces:

auto lo
iface lo inet loopback

auto enp10s0
iface enp10s0 inet static

After a sudo service network-manager restart my connection isn't connected. If I delete the enp10s0 entry (revert back to the working interfaces) and restart the network-manager, the network/internet is working again.

It's a fairly standard setup and not my first time changing something in the interfaces but I can't see my mistake here. Anybody?

  • Maybe only a dns problem, try adding dns-nameservers to /etc/network/interface – pim Nov 27 '17 at 8:05
  • I tried it with and without the dns-nameservers entry but no change there. – Chris Nov 27 '17 at 8:13

Ubuntu is using the Netplan configuration abstraction from version 17.10.

So instead of /etc/network/interfaces we now use /etc/netplan/*.yaml

The config for my single interface with static IP:

# Let NetworkManager manage all devices on this system
  version: 2
  #renderer: NetworkManager
  renderer: networkd
      dhcp4: no
      dhcp6: no
      addresses: []
        addresses: [,]

sudo netplan generate generates the configuration for the network render.

Note: I tried sudo netplan --debug generate and kept on running into a message:

DEBUG: NetworkManager: definition enp10s0 is not for us (backend 1)

But still, a restart assigned the correct IP and everything seems to be working smoothly.

  • I got this message when I used a wrong gateway address, in example instead of To figure that out, I had to debug using nmcli dev show > /tmp/nmcli.out for both before and after applying the netplan using sudo netplan --debug apply – weshouman Mar 3 '20 at 10:26

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.