Ubuntu 18.04 Server Static IP issues

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








up vote
0
down vote

favorite












I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling with sudo ifconfig eno1 up, it fails to get a IPv4 ip address.



I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply yields netplan: command not found).



To summarize, two issues:



  • the interface was disabled and no longer gets IPv4

  • netplan is no longer installed?

Contents of /etc/netplan/01-netcfg.yaml:



network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
addresses: [192.168.1.5/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]


I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.







share|improve this question

























    up vote
    0
    down vote

    favorite












    I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling with sudo ifconfig eno1 up, it fails to get a IPv4 ip address.



    I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply yields netplan: command not found).



    To summarize, two issues:



    • the interface was disabled and no longer gets IPv4

    • netplan is no longer installed?

    Contents of /etc/netplan/01-netcfg.yaml:



    network:
    version: 2
    renderer: networkd
    ethernets:
    eno1:
    dhcp4: no
    addresses: [192.168.1.5/24]
    gateway4: 192.168.1.1
    nameservers:
    addresses: [192.168.1.1]


    I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.







    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling with sudo ifconfig eno1 up, it fails to get a IPv4 ip address.



      I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply yields netplan: command not found).



      To summarize, two issues:



      • the interface was disabled and no longer gets IPv4

      • netplan is no longer installed?

      Contents of /etc/netplan/01-netcfg.yaml:



      network:
      version: 2
      renderer: networkd
      ethernets:
      eno1:
      dhcp4: no
      addresses: [192.168.1.5/24]
      gateway4: 192.168.1.1
      nameservers:
      addresses: [192.168.1.1]


      I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.







      share|improve this question













      I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling with sudo ifconfig eno1 up, it fails to get a IPv4 ip address.



      I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply yields netplan: command not found).



      To summarize, two issues:



      • the interface was disabled and no longer gets IPv4

      • netplan is no longer installed?

      Contents of /etc/netplan/01-netcfg.yaml:



      network:
      version: 2
      renderer: networkd
      ethernets:
      eno1:
      dhcp4: no
      addresses: [192.168.1.5/24]
      gateway4: 192.168.1.1
      nameservers:
      addresses: [192.168.1.1]


      I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 2 at 18:50
























      asked Jun 2 at 18:45









      Snappawapa

      2351315




      2351315




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It seems that netplan has been uninstalled for some reason.



          Run these commands to re-install netplan:



          sudo apt update
          sudo apt install netplan.io


          Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.






          share|improve this answer





















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043010%2fubuntu-18-04-server-static-ip-issues%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            It seems that netplan has been uninstalled for some reason.



            Run these commands to re-install netplan:



            sudo apt update
            sudo apt install netplan.io


            Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.






            share|improve this answer

























              up vote
              0
              down vote













              It seems that netplan has been uninstalled for some reason.



              Run these commands to re-install netplan:



              sudo apt update
              sudo apt install netplan.io


              Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                It seems that netplan has been uninstalled for some reason.



                Run these commands to re-install netplan:



                sudo apt update
                sudo apt install netplan.io


                Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.






                share|improve this answer













                It seems that netplan has been uninstalled for some reason.



                Run these commands to re-install netplan:



                sudo apt update
                sudo apt install netplan.io


                Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 5 at 6:10







                user822833





























                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043010%2fubuntu-18-04-server-static-ip-issues%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Which professions warranted travel in Medieval times?

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error