How can I set an address for ethernet (enp2s0) which persists through reboot?











up vote
0
down vote

favorite












Dell inspiron 5565 mint 19



ed@ed-Inspiron-5565 ~ $ ifconfig enp2s0
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether d0:94:66:ea:71:2c 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


I can enter inet address, route, dns, etc. and it works unil I reboot.



How can I make the changes permanent?










share|improve this question
























  • Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
    – Yurij
    14 hours ago










  • @Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
    – heynnema
    13 hours ago










  • @heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
    – Stephen Boston
    13 hours ago










  • @StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
    – heynnema
    13 hours ago










  • @heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
    – Stephen Boston
    12 hours ago















up vote
0
down vote

favorite












Dell inspiron 5565 mint 19



ed@ed-Inspiron-5565 ~ $ ifconfig enp2s0
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether d0:94:66:ea:71:2c 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


I can enter inet address, route, dns, etc. and it works unil I reboot.



How can I make the changes permanent?










share|improve this question
























  • Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
    – Yurij
    14 hours ago










  • @Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
    – heynnema
    13 hours ago










  • @heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
    – Stephen Boston
    13 hours ago










  • @StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
    – heynnema
    13 hours ago










  • @heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
    – Stephen Boston
    12 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Dell inspiron 5565 mint 19



ed@ed-Inspiron-5565 ~ $ ifconfig enp2s0
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether d0:94:66:ea:71:2c 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


I can enter inet address, route, dns, etc. and it works unil I reboot.



How can I make the changes permanent?










share|improve this question















Dell inspiron 5565 mint 19



ed@ed-Inspiron-5565 ~ $ ifconfig enp2s0
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether d0:94:66:ea:71:2c 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


I can enter inet address, route, dns, etc. and it works unil I reboot.



How can I make the changes permanent?







networking dell ethernet






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 13 hours ago









heynnema

17k22052




17k22052










asked 15 hours ago









Ed Iglehart

11




11












  • Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
    – Yurij
    14 hours ago










  • @Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
    – heynnema
    13 hours ago










  • @heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
    – Stephen Boston
    13 hours ago










  • @StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
    – heynnema
    13 hours ago










  • @heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
    – Stephen Boston
    12 hours ago


















  • Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
    – Yurij
    14 hours ago










  • @Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
    – heynnema
    13 hours ago










  • @heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
    – Stephen Boston
    13 hours ago










  • @StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
    – heynnema
    13 hours ago










  • @heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
    – Stephen Boston
    12 hours ago
















Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
– Yurij
14 hours ago




Normally you can use network manager and changes persist. as you click ok. Something revert to initial state. The bios, or Ubuntu configs under /etc/network may do reversion of settings. Rather then use old way ifconfig, you try a human readable netplan. Check netplan.io for example of config. Then sudo netplan apply.
– Yurij
14 hours ago












@Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
– heynnema
13 hours ago




@Yurij for non-server applications, NetworkManager and its GUI settings panels are the way to go. Netplan is really for servers, and the "human readable" .yaml files are somewhat difficult, for all but the simplest configs.
– heynnema
13 hours ago












@heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
– Stephen Boston
13 hours ago




@heynnema NetworkManager is optional and many users prefer networkd as netplan renderer. NetworkManager is for cli-averse users. For most configurations the yaml is simple and the system is far simpler overall than that of network-manager. As with all GUIs NM's errors and failures tend to remain hidden so that despite its seemingly simple UI its effective use is actually arcane.
– Stephen Boston
13 hours ago












@StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
– heynnema
13 hours ago




@StephenBoston netplan isn't very good for allowing the user to connect to various wireless networks at will.
– heynnema
13 hours ago












@heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
– Stephen Boston
12 hours ago




@heynnema netplan itself is not responsible for maintaining network configuration. It is more about devices. For maintaining networks, we can use wpa_supplicant configuration, most easily through the wpa_cli. This is not a nice GUI application but it is simple to use, effective, and clear. Even network manager will require some configuration at the first visit to Starbucks.
– Stephen Boston
12 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













When using NetworkManager, just go to the Wired Settings and select the wired profile that you'd like to set permanent settings. The IPv4 tab should look like this...



enter image description here



Set your IPv4 method to Manual, enter your desired Addresses and DNS servers, turn off Automatic for DNS, and you're done!






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: 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%2f1092269%2fhow-can-i-set-an-address-for-ethernet-enp2s0-which-persists-through-reboot%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













    When using NetworkManager, just go to the Wired Settings and select the wired profile that you'd like to set permanent settings. The IPv4 tab should look like this...



    enter image description here



    Set your IPv4 method to Manual, enter your desired Addresses and DNS servers, turn off Automatic for DNS, and you're done!






    share|improve this answer

























      up vote
      0
      down vote













      When using NetworkManager, just go to the Wired Settings and select the wired profile that you'd like to set permanent settings. The IPv4 tab should look like this...



      enter image description here



      Set your IPv4 method to Manual, enter your desired Addresses and DNS servers, turn off Automatic for DNS, and you're done!






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        When using NetworkManager, just go to the Wired Settings and select the wired profile that you'd like to set permanent settings. The IPv4 tab should look like this...



        enter image description here



        Set your IPv4 method to Manual, enter your desired Addresses and DNS servers, turn off Automatic for DNS, and you're done!






        share|improve this answer












        When using NetworkManager, just go to the Wired Settings and select the wired profile that you'd like to set permanent settings. The IPv4 tab should look like this...



        enter image description here



        Set your IPv4 method to Manual, enter your desired Addresses and DNS servers, turn off Automatic for DNS, and you're done!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 hours ago









        heynnema

        17k22052




        17k22052






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092269%2fhow-can-i-set-an-address-for-ethernet-enp2s0-which-persists-through-reboot%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents