Static IP and netplan stop working a couple days after fresh install Ubuntu Server 18.04 LTS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface shows no IP. It seems when I set that IP it did generate a netplan that appears correct however netplan apply does nothing.



This happened to me previously as well on the previous install. I had been messing with some DNS stuff so I figured I'd just reimage the machine and not touch any of the network utilities this time and I still am having the issue.



The issue occurs about a day and a half after install seemingly randomly. Was not using the machine when the issue began and the only thing I have done so far on this install is set up a couple docker containers with samba and SFTP.



Contents of my 50-cloud-init.yaml



# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: config: disabled
network:
version: 2
renderer: networkd
ethernets:
enp0s25:
dhcp4: no
addresses: [192.168.0.32/24]
gateway4: 192.168.0.1
nameservers:
addresses: [1.1.1.1,8.8.8.8]


Terminal output from netplan --debug apply



** (generate:2227): DEBUG: 23:11:19.520: Processing input file /etc/netplan/50-cloud-init.yaml..
** (generate:2227): DEBUG: 23:11:19.520: starting new processing pass
** (generate:2227): DEBUG: 23:11:19.520: enp0s25: setting default backend to 1
** (generate:2227): DEBUG: 23:11:19.520: Generating output files..
** (generate:2227): DEBUG: 23:11:19.520: NetworkManager: definition enp0s25 is not for us (backend 1)
DEBUG:netplan generated networkd configuration exists, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:enp0s25 not found in
DEBUG:Merged config:
network:
bonds:
bridges:
ethernets:
enp0s25:
addresses:
- 192.168.0.32/24
dhcp4: false
gateway4: 192.168.0.1
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8
vlans:
wifis:

DEBUG:Skipping non-physical interface: lo
DEBUG:Skipping non-physical interface: docker0
DEBUG:Skipping non-physical interface: br-98e8ea9c70cb
DEBUG:
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for enp0s25
DEBUG:netplan triggering .link rules for docker0
DEBUG:netplan triggering .link rules for br-98e8ea9c70cb



My ifconfig



br-98e8ea9c70cb: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
ether 02:42:51:a6:a3:66 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:d5:d6:46:8e txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:24:7e:00:e0:30 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xfc500000-fc520000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 7926 bytes 592108 (592.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7926 bytes 592108 (592.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0











share|improve this question




























    0















    Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface shows no IP. It seems when I set that IP it did generate a netplan that appears correct however netplan apply does nothing.



    This happened to me previously as well on the previous install. I had been messing with some DNS stuff so I figured I'd just reimage the machine and not touch any of the network utilities this time and I still am having the issue.



    The issue occurs about a day and a half after install seemingly randomly. Was not using the machine when the issue began and the only thing I have done so far on this install is set up a couple docker containers with samba and SFTP.



    Contents of my 50-cloud-init.yaml



    # This file is generated from information provided by
    # the datasource. Changes to it will not persist across an instance.
    # To disable cloud-init's network configuration capabilities, write a file
    # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
    # network: config: disabled
    network:
    version: 2
    renderer: networkd
    ethernets:
    enp0s25:
    dhcp4: no
    addresses: [192.168.0.32/24]
    gateway4: 192.168.0.1
    nameservers:
    addresses: [1.1.1.1,8.8.8.8]


    Terminal output from netplan --debug apply



    ** (generate:2227): DEBUG: 23:11:19.520: Processing input file /etc/netplan/50-cloud-init.yaml..
    ** (generate:2227): DEBUG: 23:11:19.520: starting new processing pass
    ** (generate:2227): DEBUG: 23:11:19.520: enp0s25: setting default backend to 1
    ** (generate:2227): DEBUG: 23:11:19.520: Generating output files..
    ** (generate:2227): DEBUG: 23:11:19.520: NetworkManager: definition enp0s25 is not for us (backend 1)
    DEBUG:netplan generated networkd configuration exists, restarting networkd
    DEBUG:no netplan generated NM configuration exists
    DEBUG:enp0s25 not found in
    DEBUG:Merged config:
    network:
    bonds:
    bridges:
    ethernets:
    enp0s25:
    addresses:
    - 192.168.0.32/24
    dhcp4: false
    gateway4: 192.168.0.1
    nameservers:
    addresses:
    - 1.1.1.1
    - 8.8.8.8
    vlans:
    wifis:

    DEBUG:Skipping non-physical interface: lo
    DEBUG:Skipping non-physical interface: docker0
    DEBUG:Skipping non-physical interface: br-98e8ea9c70cb
    DEBUG:
    DEBUG:netplan triggering .link rules for lo
    DEBUG:netplan triggering .link rules for enp0s25
    DEBUG:netplan triggering .link rules for docker0
    DEBUG:netplan triggering .link rules for br-98e8ea9c70cb



    My ifconfig



    br-98e8ea9c70cb: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
    ether 02:42:51:a6:a3:66 txqueuelen 0 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
    ether 02:42:d5:d6:46:8e txqueuelen 0 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether 00:24:7e:00:e0:30 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 16 memory 0xfc500000-fc520000

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 7926 bytes 592108 (592.1 KB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 7926 bytes 592108 (592.1 KB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0











    share|improve this question


























      0












      0








      0


      1






      Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface shows no IP. It seems when I set that IP it did generate a netplan that appears correct however netplan apply does nothing.



      This happened to me previously as well on the previous install. I had been messing with some DNS stuff so I figured I'd just reimage the machine and not touch any of the network utilities this time and I still am having the issue.



      The issue occurs about a day and a half after install seemingly randomly. Was not using the machine when the issue began and the only thing I have done so far on this install is set up a couple docker containers with samba and SFTP.



      Contents of my 50-cloud-init.yaml



      # This file is generated from information provided by
      # the datasource. Changes to it will not persist across an instance.
      # To disable cloud-init's network configuration capabilities, write a file
      # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
      # network: config: disabled
      network:
      version: 2
      renderer: networkd
      ethernets:
      enp0s25:
      dhcp4: no
      addresses: [192.168.0.32/24]
      gateway4: 192.168.0.1
      nameservers:
      addresses: [1.1.1.1,8.8.8.8]


      Terminal output from netplan --debug apply



      ** (generate:2227): DEBUG: 23:11:19.520: Processing input file /etc/netplan/50-cloud-init.yaml..
      ** (generate:2227): DEBUG: 23:11:19.520: starting new processing pass
      ** (generate:2227): DEBUG: 23:11:19.520: enp0s25: setting default backend to 1
      ** (generate:2227): DEBUG: 23:11:19.520: Generating output files..
      ** (generate:2227): DEBUG: 23:11:19.520: NetworkManager: definition enp0s25 is not for us (backend 1)
      DEBUG:netplan generated networkd configuration exists, restarting networkd
      DEBUG:no netplan generated NM configuration exists
      DEBUG:enp0s25 not found in
      DEBUG:Merged config:
      network:
      bonds:
      bridges:
      ethernets:
      enp0s25:
      addresses:
      - 192.168.0.32/24
      dhcp4: false
      gateway4: 192.168.0.1
      nameservers:
      addresses:
      - 1.1.1.1
      - 8.8.8.8
      vlans:
      wifis:

      DEBUG:Skipping non-physical interface: lo
      DEBUG:Skipping non-physical interface: docker0
      DEBUG:Skipping non-physical interface: br-98e8ea9c70cb
      DEBUG:
      DEBUG:netplan triggering .link rules for lo
      DEBUG:netplan triggering .link rules for enp0s25
      DEBUG:netplan triggering .link rules for docker0
      DEBUG:netplan triggering .link rules for br-98e8ea9c70cb



      My ifconfig



      br-98e8ea9c70cb: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
      ether 02:42:51:a6:a3:66 txqueuelen 0 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
      ether 02:42:d5:d6:46:8e txqueuelen 0 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      ether 00:24:7e:00:e0:30 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
      device interrupt 16 memory 0xfc500000-fc520000

      lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 7926 bytes 592108 (592.1 KB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 7926 bytes 592108 (592.1 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0











      share|improve this question
















      Having some major issues with networking on Ubuntu 18.04 LTS. Fresh install. I set a static IP during install which worked for a couple days and remained set after multiple reboots. Now the interface shows no IP. It seems when I set that IP it did generate a netplan that appears correct however netplan apply does nothing.



      This happened to me previously as well on the previous install. I had been messing with some DNS stuff so I figured I'd just reimage the machine and not touch any of the network utilities this time and I still am having the issue.



      The issue occurs about a day and a half after install seemingly randomly. Was not using the machine when the issue began and the only thing I have done so far on this install is set up a couple docker containers with samba and SFTP.



      Contents of my 50-cloud-init.yaml



      # This file is generated from information provided by
      # the datasource. Changes to it will not persist across an instance.
      # To disable cloud-init's network configuration capabilities, write a file
      # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
      # network: config: disabled
      network:
      version: 2
      renderer: networkd
      ethernets:
      enp0s25:
      dhcp4: no
      addresses: [192.168.0.32/24]
      gateway4: 192.168.0.1
      nameservers:
      addresses: [1.1.1.1,8.8.8.8]


      Terminal output from netplan --debug apply



      ** (generate:2227): DEBUG: 23:11:19.520: Processing input file /etc/netplan/50-cloud-init.yaml..
      ** (generate:2227): DEBUG: 23:11:19.520: starting new processing pass
      ** (generate:2227): DEBUG: 23:11:19.520: enp0s25: setting default backend to 1
      ** (generate:2227): DEBUG: 23:11:19.520: Generating output files..
      ** (generate:2227): DEBUG: 23:11:19.520: NetworkManager: definition enp0s25 is not for us (backend 1)
      DEBUG:netplan generated networkd configuration exists, restarting networkd
      DEBUG:no netplan generated NM configuration exists
      DEBUG:enp0s25 not found in
      DEBUG:Merged config:
      network:
      bonds:
      bridges:
      ethernets:
      enp0s25:
      addresses:
      - 192.168.0.32/24
      dhcp4: false
      gateway4: 192.168.0.1
      nameservers:
      addresses:
      - 1.1.1.1
      - 8.8.8.8
      vlans:
      wifis:

      DEBUG:Skipping non-physical interface: lo
      DEBUG:Skipping non-physical interface: docker0
      DEBUG:Skipping non-physical interface: br-98e8ea9c70cb
      DEBUG:
      DEBUG:netplan triggering .link rules for lo
      DEBUG:netplan triggering .link rules for enp0s25
      DEBUG:netplan triggering .link rules for docker0
      DEBUG:netplan triggering .link rules for br-98e8ea9c70cb



      My ifconfig



      br-98e8ea9c70cb: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
      ether 02:42:51:a6:a3:66 txqueuelen 0 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
      ether 02:42:d5:d6:46:8e txqueuelen 0 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      enp0s25: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
      ether 00:24:7e:00:e0:30 txqueuelen 1000 (Ethernet)
      RX packets 0 bytes 0 (0.0 B)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 0 bytes 0 (0.0 B)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
      device interrupt 16 memory 0xfc500000-fc520000

      lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 7926 bytes 592108 (592.1 KB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 7926 bytes 592108 (592.1 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0








      ubuntu networking systemd-networkd netplan






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 14 at 23:37







      CNorlander

















      asked Feb 14 at 22:23









      CNorlanderCNorlander

      11




      11




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Have you configured the static IP in a correct manner? See This tutorial. Remeber, configuring static IP in 18.04 is different from 16.04.



          Other than that i would recommend to see if any other host in the network has "stole" the IP, maybe try with an other static IP for the host. Make sure to ping the new static IP in order to make sure it is available.



          Finally make sure you run sudo netplan apply, or sudo netplan --debug apply in order to run the new configurations.



          My best guess is that /etc/netplan/50-cloud-init.yaml is configured wrong so go through it carefully one more time.



          Good luck.






          share|improve this answer























          • I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

            – CNorlander
            Feb 14 at 22:48












          • Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

            – emilrn
            Feb 14 at 23:02











          • I have updated my post with netplan configs and debug outputs

            – CNorlander
            Feb 14 at 23:21












          • what are the output of ifconfig ?

            – emilrn
            Feb 14 at 23:30











          • I have added it to the original post now

            – CNorlander
            Feb 14 at 23:37










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500731%2fstatic-ip-and-netplan-stop-working-a-couple-days-after-fresh-install-ubuntu-serv%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Have you configured the static IP in a correct manner? See This tutorial. Remeber, configuring static IP in 18.04 is different from 16.04.



          Other than that i would recommend to see if any other host in the network has "stole" the IP, maybe try with an other static IP for the host. Make sure to ping the new static IP in order to make sure it is available.



          Finally make sure you run sudo netplan apply, or sudo netplan --debug apply in order to run the new configurations.



          My best guess is that /etc/netplan/50-cloud-init.yaml is configured wrong so go through it carefully one more time.



          Good luck.






          share|improve this answer























          • I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

            – CNorlander
            Feb 14 at 22:48












          • Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

            – emilrn
            Feb 14 at 23:02











          • I have updated my post with netplan configs and debug outputs

            – CNorlander
            Feb 14 at 23:21












          • what are the output of ifconfig ?

            – emilrn
            Feb 14 at 23:30











          • I have added it to the original post now

            – CNorlander
            Feb 14 at 23:37















          0














          Have you configured the static IP in a correct manner? See This tutorial. Remeber, configuring static IP in 18.04 is different from 16.04.



          Other than that i would recommend to see if any other host in the network has "stole" the IP, maybe try with an other static IP for the host. Make sure to ping the new static IP in order to make sure it is available.



          Finally make sure you run sudo netplan apply, or sudo netplan --debug apply in order to run the new configurations.



          My best guess is that /etc/netplan/50-cloud-init.yaml is configured wrong so go through it carefully one more time.



          Good luck.






          share|improve this answer























          • I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

            – CNorlander
            Feb 14 at 22:48












          • Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

            – emilrn
            Feb 14 at 23:02











          • I have updated my post with netplan configs and debug outputs

            – CNorlander
            Feb 14 at 23:21












          • what are the output of ifconfig ?

            – emilrn
            Feb 14 at 23:30











          • I have added it to the original post now

            – CNorlander
            Feb 14 at 23:37













          0












          0








          0







          Have you configured the static IP in a correct manner? See This tutorial. Remeber, configuring static IP in 18.04 is different from 16.04.



          Other than that i would recommend to see if any other host in the network has "stole" the IP, maybe try with an other static IP for the host. Make sure to ping the new static IP in order to make sure it is available.



          Finally make sure you run sudo netplan apply, or sudo netplan --debug apply in order to run the new configurations.



          My best guess is that /etc/netplan/50-cloud-init.yaml is configured wrong so go through it carefully one more time.



          Good luck.






          share|improve this answer













          Have you configured the static IP in a correct manner? See This tutorial. Remeber, configuring static IP in 18.04 is different from 16.04.



          Other than that i would recommend to see if any other host in the network has "stole" the IP, maybe try with an other static IP for the host. Make sure to ping the new static IP in order to make sure it is available.



          Finally make sure you run sudo netplan apply, or sudo netplan --debug apply in order to run the new configurations.



          My best guess is that /etc/netplan/50-cloud-init.yaml is configured wrong so go through it carefully one more time.



          Good luck.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 14 at 22:39









          emilrnemilrn

          33




          33












          • I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

            – CNorlander
            Feb 14 at 22:48












          • Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

            – emilrn
            Feb 14 at 23:02











          • I have updated my post with netplan configs and debug outputs

            – CNorlander
            Feb 14 at 23:21












          • what are the output of ifconfig ?

            – emilrn
            Feb 14 at 23:30











          • I have added it to the original post now

            – CNorlander
            Feb 14 at 23:37

















          • I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

            – CNorlander
            Feb 14 at 22:48












          • Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

            – emilrn
            Feb 14 at 23:02











          • I have updated my post with netplan configs and debug outputs

            – CNorlander
            Feb 14 at 23:21












          • what are the output of ifconfig ?

            – emilrn
            Feb 14 at 23:30











          • I have added it to the original post now

            – CNorlander
            Feb 14 at 23:37
















          I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

          – CNorlander
          Feb 14 at 22:48






          I will take a look that that tutorial when I have a minute and give it a go. The odd thing is that I didn't make the netplan config. Ubuntu did when I entered the static IP in the live install gui.

          – CNorlander
          Feb 14 at 22:48














          Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

          – emilrn
          Feb 14 at 23:02





          Hmm, i bet somthing is wrong in your configuration as mentioned. I have followed that exact tuturials on several ubuntu 18.04 VMs, has worked for me all those times.

          – emilrn
          Feb 14 at 23:02













          I have updated my post with netplan configs and debug outputs

          – CNorlander
          Feb 14 at 23:21






          I have updated my post with netplan configs and debug outputs

          – CNorlander
          Feb 14 at 23:21














          what are the output of ifconfig ?

          – emilrn
          Feb 14 at 23:30





          what are the output of ifconfig ?

          – emilrn
          Feb 14 at 23:30













          I have added it to the original post now

          – CNorlander
          Feb 14 at 23:37





          I have added it to the original post now

          – CNorlander
          Feb 14 at 23:37

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500731%2fstatic-ip-and-netplan-stop-working-a-couple-days-after-fresh-install-ubuntu-serv%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay