Setup a loopback address in Ubuntu 18.04 Desktop12.04 wired network doesn't work RTL8111/8168BSetting proxy variables automatically for different Network ProfilesNo NetworkManager applet and serviceNetwork indicator missing in ubuntu 14.04 64 bitNo ethernet on Ubuntu 14.04 LTSEthernet Network() device not managed ubuntu 16.04How to setup netplan with additional loopback addresses but mainly use NetworkManager?Ubuntu 18.04 netplan static routesUnable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-managerUbuntu 18.04 problems with DNS not working for local network devices

If I stood next to a piece of metal heated to a million degrees, but in a perfect vacuum, would I feel hot?

Is there an English equivalent for "Les carottes sont cuites", while keeping the vegetable reference?

Why do so many algebra PhD students drop out or leave academia, compared to applied mathematics PhDs?

@track not working in connectedCallback

Why does ffmpeg choose 10+20+20ms instead of an even 16ms for 60fps gifs?

Why do legislative committees exist?

What to look for in climbing shoes?

Did the First Order follow Poe to Jakku, or did they independently discover that the map fragment was there?

Why doesn't philosophy have higher standards for its arguments?

Re-negotiate salary once I earn my diploma

Decoding Every Top 100 Voting Ever

Too many spies!

How to unload a Mathematica package?

What are some symbols representing peasants/oppressed persons fighting back?

Video editor for YouTube

Why is "dark" an adverb in this sentence?

What systems of robust steganography are out there?

Is this more than a packing puzzle?

Do aircraft cabins have suspension?

Why aren't globular clusters disk shaped

Populate Custom Table instead of Contacts table in CRM using Dynamics CRM Connector

What's the meaning of こそ in this sentence?

How can I design a witch (or other enemy) that summons/controls lightning birds at sea to attack the party while hidden on a ship?

Use of "sit" instead of "est" in Virgil



Setup a loopback address in Ubuntu 18.04 Desktop


12.04 wired network doesn't work RTL8111/8168BSetting proxy variables automatically for different Network ProfilesNo NetworkManager applet and serviceNetwork indicator missing in ubuntu 14.04 64 bitNo ethernet on Ubuntu 14.04 LTSEthernet Network() device not managed ubuntu 16.04How to setup netplan with additional loopback addresses but mainly use NetworkManager?Ubuntu 18.04 netplan static routesUnable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-managerUbuntu 18.04 problems with DNS not working for local network devices






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have a development setup with docker where I need to have a loopback address set up on my laptop. Currently, I am able to do that by running the following:



sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


The issue is that when I come back to my system after leaving it for a while, I need to rerun this command in order to get my dev environment working again. I'd like to make this persistent in order to not have to run this command all the time. I am running Ubuntu 18.04 Minimal Install.



I have tried adding the following line to /etc/network/interfaces without any success:



up sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


My /etc/netplan/01-network-manager-all.yaml contains the following:



# Let NetworkManager manage all devices on this system 
network:
version: 2
renderer: NetworkManager


Therefore I assume that it is network manager (i.e. /etc/network/interfaces) that I need to configure but can't seem to figure out what I need to put in there.










share|improve this question




























    1















    I have a development setup with docker where I need to have a loopback address set up on my laptop. Currently, I am able to do that by running the following:



    sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


    The issue is that when I come back to my system after leaving it for a while, I need to rerun this command in order to get my dev environment working again. I'd like to make this persistent in order to not have to run this command all the time. I am running Ubuntu 18.04 Minimal Install.



    I have tried adding the following line to /etc/network/interfaces without any success:



    up sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


    My /etc/netplan/01-network-manager-all.yaml contains the following:



    # Let NetworkManager manage all devices on this system 
    network:
    version: 2
    renderer: NetworkManager


    Therefore I assume that it is network manager (i.e. /etc/network/interfaces) that I need to configure but can't seem to figure out what I need to put in there.










    share|improve this question
























      1












      1








      1








      I have a development setup with docker where I need to have a loopback address set up on my laptop. Currently, I am able to do that by running the following:



      sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


      The issue is that when I come back to my system after leaving it for a while, I need to rerun this command in order to get my dev environment working again. I'd like to make this persistent in order to not have to run this command all the time. I am running Ubuntu 18.04 Minimal Install.



      I have tried adding the following line to /etc/network/interfaces without any success:



      up sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


      My /etc/netplan/01-network-manager-all.yaml contains the following:



      # Let NetworkManager manage all devices on this system 
      network:
      version: 2
      renderer: NetworkManager


      Therefore I assume that it is network manager (i.e. /etc/network/interfaces) that I need to configure but can't seem to figure out what I need to put in there.










      share|improve this question














      I have a development setup with docker where I need to have a loopback address set up on my laptop. Currently, I am able to do that by running the following:



      sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


      The issue is that when I come back to my system after leaving it for a while, I need to rerun this command in order to get my dev environment working again. I'd like to make this persistent in order to not have to run this command all the time. I am running Ubuntu 18.04 Minimal Install.



      I have tried adding the following line to /etc/network/interfaces without any success:



      up sudo ip addr add 10.254.254.254/24 brd + dev wlp2s0 label wlp2s0:1


      My /etc/netplan/01-network-manager-all.yaml contains the following:



      # Let NetworkManager manage all devices on this system 
      network:
      version: 2
      renderer: NetworkManager


      Therefore I assume that it is network manager (i.e. /etc/network/interfaces) that I need to configure but can't seem to figure out what I need to put in there.







      network-manager






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 15 at 3:19









      helios456helios456

      1062 bronze badges




      1062 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have settled on the following solution, should it help someone out there in the future.



          I have edited my /etc/netplan/01-network-manager-all.yaml to the following in order to get a loopback address.



          network:
          version: 2
          renderer: NetworkManager
          ethernets:
          lo:
          renderer: networkd
          match:
          name: lo
          addresses:
          - 10.254.254.254/24


          It essentially keeps the NetworkManager as the renderer for all other interfaces but loopback, and sets the address that I wanted as a loopback address. The address is no longer on my wireless interface, but I think this is actually preferable.






          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1133948%2fsetup-a-loopback-address-in-ubuntu-18-04-desktop%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














            I have settled on the following solution, should it help someone out there in the future.



            I have edited my /etc/netplan/01-network-manager-all.yaml to the following in order to get a loopback address.



            network:
            version: 2
            renderer: NetworkManager
            ethernets:
            lo:
            renderer: networkd
            match:
            name: lo
            addresses:
            - 10.254.254.254/24


            It essentially keeps the NetworkManager as the renderer for all other interfaces but loopback, and sets the address that I wanted as a loopback address. The address is no longer on my wireless interface, but I think this is actually preferable.






            share|improve this answer



























              0














              I have settled on the following solution, should it help someone out there in the future.



              I have edited my /etc/netplan/01-network-manager-all.yaml to the following in order to get a loopback address.



              network:
              version: 2
              renderer: NetworkManager
              ethernets:
              lo:
              renderer: networkd
              match:
              name: lo
              addresses:
              - 10.254.254.254/24


              It essentially keeps the NetworkManager as the renderer for all other interfaces but loopback, and sets the address that I wanted as a loopback address. The address is no longer on my wireless interface, but I think this is actually preferable.






              share|improve this answer

























                0












                0








                0







                I have settled on the following solution, should it help someone out there in the future.



                I have edited my /etc/netplan/01-network-manager-all.yaml to the following in order to get a loopback address.



                network:
                version: 2
                renderer: NetworkManager
                ethernets:
                lo:
                renderer: networkd
                match:
                name: lo
                addresses:
                - 10.254.254.254/24


                It essentially keeps the NetworkManager as the renderer for all other interfaces but loopback, and sets the address that I wanted as a loopback address. The address is no longer on my wireless interface, but I think this is actually preferable.






                share|improve this answer













                I have settled on the following solution, should it help someone out there in the future.



                I have edited my /etc/netplan/01-network-manager-all.yaml to the following in order to get a loopback address.



                network:
                version: 2
                renderer: NetworkManager
                ethernets:
                lo:
                renderer: networkd
                match:
                name: lo
                addresses:
                - 10.254.254.254/24


                It essentially keeps the NetworkManager as the renderer for all other interfaces but loopback, and sets the address that I wanted as a loopback address. The address is no longer on my wireless interface, but I think this is actually preferable.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 16 at 2:59









                helios456helios456

                1062 bronze badges




                1062 bronze badges



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1133948%2fsetup-a-loopback-address-in-ubuntu-18-04-desktop%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

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?