netcfg.yaml question

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








up vote
0
down vote

favorite












hello I just upgraded to ubuntu 18 and looking for help on converting this to work with netplan.



auto ens192
iface ens192 inet static
address 10.0.0.2
netmask 255.255.255.0
up route add -net 10.0.0.0/24 gw 10.0.0.1 dev ens192






share|improve this question
























    up vote
    0
    down vote

    favorite












    hello I just upgraded to ubuntu 18 and looking for help on converting this to work with netplan.



    auto ens192
    iface ens192 inet static
    address 10.0.0.2
    netmask 255.255.255.0
    up route add -net 10.0.0.0/24 gw 10.0.0.1 dev ens192






    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      hello I just upgraded to ubuntu 18 and looking for help on converting this to work with netplan.



      auto ens192
      iface ens192 inet static
      address 10.0.0.2
      netmask 255.255.255.0
      up route add -net 10.0.0.0/24 gw 10.0.0.1 dev ens192






      share|improve this question












      hello I just upgraded to ubuntu 18 and looking for help on converting this to work with netplan.



      auto ens192
      iface ens192 inet static
      address 10.0.0.2
      netmask 255.255.255.0
      up route add -net 10.0.0.0/24 gw 10.0.0.1 dev ens192








      share|improve this question











      share|improve this question




      share|improve this question










      asked May 17 at 5:15









      jonathan adams

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You can convert it to:



          network:
          renderer: networkd
          version: 2
          ethernets:
          ens192:
          dhcp4: no
          dhcp6; no
          addresses: [10.0.0.2/24]
          gateway4: 10.0.0.1
          nameservers:
          addresses: [8.8.8.8,8.8.4.4]


          Then launch:



          sudo netplan apply





          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%2f1037234%2fnetcfg-yaml-question%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













            You can convert it to:



            network:
            renderer: networkd
            version: 2
            ethernets:
            ens192:
            dhcp4: no
            dhcp6; no
            addresses: [10.0.0.2/24]
            gateway4: 10.0.0.1
            nameservers:
            addresses: [8.8.8.8,8.8.4.4]


            Then launch:



            sudo netplan apply





            share|improve this answer
























              up vote
              0
              down vote













              You can convert it to:



              network:
              renderer: networkd
              version: 2
              ethernets:
              ens192:
              dhcp4: no
              dhcp6; no
              addresses: [10.0.0.2/24]
              gateway4: 10.0.0.1
              nameservers:
              addresses: [8.8.8.8,8.8.4.4]


              Then launch:



              sudo netplan apply





              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                You can convert it to:



                network:
                renderer: networkd
                version: 2
                ethernets:
                ens192:
                dhcp4: no
                dhcp6; no
                addresses: [10.0.0.2/24]
                gateway4: 10.0.0.1
                nameservers:
                addresses: [8.8.8.8,8.8.4.4]


                Then launch:



                sudo netplan apply





                share|improve this answer












                You can convert it to:



                network:
                renderer: networkd
                version: 2
                ethernets:
                ens192:
                dhcp4: no
                dhcp6; no
                addresses: [10.0.0.2/24]
                gateway4: 10.0.0.1
                nameservers:
                addresses: [8.8.8.8,8.8.4.4]


                Then launch:



                sudo netplan apply






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 11 at 10:35









                Jostino

                1317




                1317






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037234%2fnetcfg-yaml-question%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491