How to use neworkd instead of NetworkManager on ubuntu 18.04 desktop

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








up vote
0
down vote

favorite












I'm looking for the correct way of configuring the network with static IP on Ubuntu Desktop 18.04, but from the command line and not the GUI.



Thank you







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm looking for the correct way of configuring the network with static IP on Ubuntu Desktop 18.04, but from the command line and not the GUI.



    Thank you







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm looking for the correct way of configuring the network with static IP on Ubuntu Desktop 18.04, but from the command line and not the GUI.



      Thank you







      share|improve this question












      I'm looking for the correct way of configuring the network with static IP on Ubuntu Desktop 18.04, but from the command line and not the GUI.



      Thank you









      share|improve this question











      share|improve this question




      share|improve this question










      asked May 19 at 17:07









      Carlos Estrada

      142229




      142229




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          I think this is as close to the "correct way" as you can get.



          First you must find out what your interface name is. To do that just run ip address from the Terminal. On my machine it is eno1 which can be found on the first line:



          me@pc:~$ ip address
          2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
          link/ether 90:b1:1c:aa:bb:cc brd ff:ff:ff:ff:ff:ff
          inet 10.1.2.16/24 brd 10.1.2.255 scope global eno1
          valid_lft forever preferred_lft forever
          inet6 fe80::5cd1:3ee8:c461:6f12/64 scope link noprefixroute
          valid_lft forever preferred_lft forever


          Then you just need to edit the file /etc/netplan/01-network-manager-all.yaml and make it look like this for a static IP address assignment:



          # Let NetworkManager manage all devices on this system
          network:
          version: 2
          renderer: NetworkManager
          ethernets:
          eno1:
          renderer: networkd
          match:
          name: eno1
          addresses: [10.1.2.16/24]
          gateway4: 10.1.2.1
          nameservers:
          search: [example.com]
          addresses: [10.1.2.10]


          This tells netplan to use networkd on the interface eno1 instead of NetworkManager.






          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%2f1038156%2fhow-to-use-neworkd-instead-of-networkmanager-on-ubuntu-18-04-desktop%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



            accepted










            I think this is as close to the "correct way" as you can get.



            First you must find out what your interface name is. To do that just run ip address from the Terminal. On my machine it is eno1 which can be found on the first line:



            me@pc:~$ ip address
            2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
            link/ether 90:b1:1c:aa:bb:cc brd ff:ff:ff:ff:ff:ff
            inet 10.1.2.16/24 brd 10.1.2.255 scope global eno1
            valid_lft forever preferred_lft forever
            inet6 fe80::5cd1:3ee8:c461:6f12/64 scope link noprefixroute
            valid_lft forever preferred_lft forever


            Then you just need to edit the file /etc/netplan/01-network-manager-all.yaml and make it look like this for a static IP address assignment:



            # Let NetworkManager manage all devices on this system
            network:
            version: 2
            renderer: NetworkManager
            ethernets:
            eno1:
            renderer: networkd
            match:
            name: eno1
            addresses: [10.1.2.16/24]
            gateway4: 10.1.2.1
            nameservers:
            search: [example.com]
            addresses: [10.1.2.10]


            This tells netplan to use networkd on the interface eno1 instead of NetworkManager.






            share|improve this answer
























              up vote
              0
              down vote



              accepted










              I think this is as close to the "correct way" as you can get.



              First you must find out what your interface name is. To do that just run ip address from the Terminal. On my machine it is eno1 which can be found on the first line:



              me@pc:~$ ip address
              2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
              link/ether 90:b1:1c:aa:bb:cc brd ff:ff:ff:ff:ff:ff
              inet 10.1.2.16/24 brd 10.1.2.255 scope global eno1
              valid_lft forever preferred_lft forever
              inet6 fe80::5cd1:3ee8:c461:6f12/64 scope link noprefixroute
              valid_lft forever preferred_lft forever


              Then you just need to edit the file /etc/netplan/01-network-manager-all.yaml and make it look like this for a static IP address assignment:



              # Let NetworkManager manage all devices on this system
              network:
              version: 2
              renderer: NetworkManager
              ethernets:
              eno1:
              renderer: networkd
              match:
              name: eno1
              addresses: [10.1.2.16/24]
              gateway4: 10.1.2.1
              nameservers:
              search: [example.com]
              addresses: [10.1.2.10]


              This tells netplan to use networkd on the interface eno1 instead of NetworkManager.






              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                I think this is as close to the "correct way" as you can get.



                First you must find out what your interface name is. To do that just run ip address from the Terminal. On my machine it is eno1 which can be found on the first line:



                me@pc:~$ ip address
                2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
                link/ether 90:b1:1c:aa:bb:cc brd ff:ff:ff:ff:ff:ff
                inet 10.1.2.16/24 brd 10.1.2.255 scope global eno1
                valid_lft forever preferred_lft forever
                inet6 fe80::5cd1:3ee8:c461:6f12/64 scope link noprefixroute
                valid_lft forever preferred_lft forever


                Then you just need to edit the file /etc/netplan/01-network-manager-all.yaml and make it look like this for a static IP address assignment:



                # Let NetworkManager manage all devices on this system
                network:
                version: 2
                renderer: NetworkManager
                ethernets:
                eno1:
                renderer: networkd
                match:
                name: eno1
                addresses: [10.1.2.16/24]
                gateway4: 10.1.2.1
                nameservers:
                search: [example.com]
                addresses: [10.1.2.10]


                This tells netplan to use networkd on the interface eno1 instead of NetworkManager.






                share|improve this answer












                I think this is as close to the "correct way" as you can get.



                First you must find out what your interface name is. To do that just run ip address from the Terminal. On my machine it is eno1 which can be found on the first line:



                me@pc:~$ ip address
                2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
                link/ether 90:b1:1c:aa:bb:cc brd ff:ff:ff:ff:ff:ff
                inet 10.1.2.16/24 brd 10.1.2.255 scope global eno1
                valid_lft forever preferred_lft forever
                inet6 fe80::5cd1:3ee8:c461:6f12/64 scope link noprefixroute
                valid_lft forever preferred_lft forever


                Then you just need to edit the file /etc/netplan/01-network-manager-all.yaml and make it look like this for a static IP address assignment:



                # Let NetworkManager manage all devices on this system
                network:
                version: 2
                renderer: NetworkManager
                ethernets:
                eno1:
                renderer: networkd
                match:
                name: eno1
                addresses: [10.1.2.16/24]
                gateway4: 10.1.2.1
                nameservers:
                search: [example.com]
                addresses: [10.1.2.10]


                This tells netplan to use networkd on the interface eno1 instead of NetworkManager.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 23 at 16:57







                user822833





























                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038156%2fhow-to-use-neworkd-instead-of-networkmanager-on-ubuntu-18-04-desktop%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