Netplan configuration doesn't seem to be taking effect












0















After configuring a static ip address in /etc/netplan/01-network-manager-all.yaml for my wlan interface, the ip address nor the dns changed.



I used sudo netplan generate and sudo netplan apply, but when I ran ifconfig nothing had changed.



My netplan config:



# Let NetworkManager manage all devices on this system

network:
version: 2
renderer: NetworkManager

wifis:
wlp6s0:
dhcp4: no
dhcp6: no
addresses: [10.0.0.115/24]
gateway4: 10.0.0.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
access-points:
XXXXX:
password: XXXXXXXX


ifconfig output:



lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2882 bytes 252039 (252.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2882 bytes 252039 (252.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.14 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::eba8:95b6:70df:fee5 prefixlen 64 scopeid 0x20<link>
ether 00:17:9a:01:c6:00 txqueuelen 1000 (Ethernet)
RX packets 12673 bytes 8587304 (8.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11485 bytes 1727699 (1.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


The ip address stays 10.0.0.14










share|improve this question



























    0















    After configuring a static ip address in /etc/netplan/01-network-manager-all.yaml for my wlan interface, the ip address nor the dns changed.



    I used sudo netplan generate and sudo netplan apply, but when I ran ifconfig nothing had changed.



    My netplan config:



    # Let NetworkManager manage all devices on this system

    network:
    version: 2
    renderer: NetworkManager

    wifis:
    wlp6s0:
    dhcp4: no
    dhcp6: no
    addresses: [10.0.0.115/24]
    gateway4: 10.0.0.1
    nameservers:
    addresses: [8.8.8.8, 8.8.4.4]
    access-points:
    XXXXX:
    password: XXXXXXXX


    ifconfig output:



    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 2882 bytes 252039 (252.0 KB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2882 bytes 252039 (252.0 KB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 10.0.0.14 netmask 255.255.255.0 broadcast 10.0.0.255
    inet6 fe80::eba8:95b6:70df:fee5 prefixlen 64 scopeid 0x20<link>
    ether 00:17:9a:01:c6:00 txqueuelen 1000 (Ethernet)
    RX packets 12673 bytes 8587304 (8.5 MB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 11485 bytes 1727699 (1.7 MB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    The ip address stays 10.0.0.14










    share|improve this question

























      0












      0








      0








      After configuring a static ip address in /etc/netplan/01-network-manager-all.yaml for my wlan interface, the ip address nor the dns changed.



      I used sudo netplan generate and sudo netplan apply, but when I ran ifconfig nothing had changed.



      My netplan config:



      # Let NetworkManager manage all devices on this system

      network:
      version: 2
      renderer: NetworkManager

      wifis:
      wlp6s0:
      dhcp4: no
      dhcp6: no
      addresses: [10.0.0.115/24]
      gateway4: 10.0.0.1
      nameservers:
      addresses: [8.8.8.8, 8.8.4.4]
      access-points:
      XXXXX:
      password: XXXXXXXX


      ifconfig output:



      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 2882 bytes 252039 (252.0 KB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 2882 bytes 252039 (252.0 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      wlp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 10.0.0.14 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::eba8:95b6:70df:fee5 prefixlen 64 scopeid 0x20<link>
      ether 00:17:9a:01:c6:00 txqueuelen 1000 (Ethernet)
      RX packets 12673 bytes 8587304 (8.5 MB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 11485 bytes 1727699 (1.7 MB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


      The ip address stays 10.0.0.14










      share|improve this question














      After configuring a static ip address in /etc/netplan/01-network-manager-all.yaml for my wlan interface, the ip address nor the dns changed.



      I used sudo netplan generate and sudo netplan apply, but when I ran ifconfig nothing had changed.



      My netplan config:



      # Let NetworkManager manage all devices on this system

      network:
      version: 2
      renderer: NetworkManager

      wifis:
      wlp6s0:
      dhcp4: no
      dhcp6: no
      addresses: [10.0.0.115/24]
      gateway4: 10.0.0.1
      nameservers:
      addresses: [8.8.8.8, 8.8.4.4]
      access-points:
      XXXXX:
      password: XXXXXXXX


      ifconfig output:



      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
      inet 127.0.0.1 netmask 255.0.0.0
      inet6 ::1 prefixlen 128 scopeid 0x10<host>
      loop txqueuelen 1000 (Local Loopback)
      RX packets 2882 bytes 252039 (252.0 KB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 2882 bytes 252039 (252.0 KB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

      wlp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
      inet 10.0.0.14 netmask 255.255.255.0 broadcast 10.0.0.255
      inet6 fe80::eba8:95b6:70df:fee5 prefixlen 64 scopeid 0x20<link>
      ether 00:17:9a:01:c6:00 txqueuelen 1000 (Ethernet)
      RX packets 12673 bytes 8587304 (8.5 MB)
      RX errors 0 dropped 0 overruns 0 frame 0
      TX packets 11485 bytes 1727699 (1.7 MB)
      TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


      The ip address stays 10.0.0.14







      networking wireless dns netplan ifconfig






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 24 at 2:12









      AlexDude7AlexDude7

      4518




      4518






















          1 Answer
          1






          active

          oldest

          votes


















          2














          You have to decide whether to run with NetworkManager or netplan.



          Ubuntu Desktop users should probably use NetworkManager, and use its GUI tools.



          Ubuntu Server users should be using netplan.



          Your .yaml file is a combination of both NetworkManager and netplan. Can't do that.



          If you're going to use NetworkManager, your .yaml should look like this...



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


          followed with a:



          sudo netplan --debug generate



          sudo netplan apply



          Then you need to configure /etc/network/interfaces with command syntax similar to, but not exactly, like the remainder of your existing .yaml file. However, rather than editing /etc/network/interfaces just use the NetworkManager GUI tools to configure your wireless networks.



          enter image description here






          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%2f1112378%2fnetplan-configuration-doesnt-seem-to-be-taking-effect%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









            2














            You have to decide whether to run with NetworkManager or netplan.



            Ubuntu Desktop users should probably use NetworkManager, and use its GUI tools.



            Ubuntu Server users should be using netplan.



            Your .yaml file is a combination of both NetworkManager and netplan. Can't do that.



            If you're going to use NetworkManager, your .yaml should look like this...



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


            followed with a:



            sudo netplan --debug generate



            sudo netplan apply



            Then you need to configure /etc/network/interfaces with command syntax similar to, but not exactly, like the remainder of your existing .yaml file. However, rather than editing /etc/network/interfaces just use the NetworkManager GUI tools to configure your wireless networks.



            enter image description here






            share|improve this answer






























              2














              You have to decide whether to run with NetworkManager or netplan.



              Ubuntu Desktop users should probably use NetworkManager, and use its GUI tools.



              Ubuntu Server users should be using netplan.



              Your .yaml file is a combination of both NetworkManager and netplan. Can't do that.



              If you're going to use NetworkManager, your .yaml should look like this...



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


              followed with a:



              sudo netplan --debug generate



              sudo netplan apply



              Then you need to configure /etc/network/interfaces with command syntax similar to, but not exactly, like the remainder of your existing .yaml file. However, rather than editing /etc/network/interfaces just use the NetworkManager GUI tools to configure your wireless networks.



              enter image description here






              share|improve this answer




























                2












                2








                2







                You have to decide whether to run with NetworkManager or netplan.



                Ubuntu Desktop users should probably use NetworkManager, and use its GUI tools.



                Ubuntu Server users should be using netplan.



                Your .yaml file is a combination of both NetworkManager and netplan. Can't do that.



                If you're going to use NetworkManager, your .yaml should look like this...



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


                followed with a:



                sudo netplan --debug generate



                sudo netplan apply



                Then you need to configure /etc/network/interfaces with command syntax similar to, but not exactly, like the remainder of your existing .yaml file. However, rather than editing /etc/network/interfaces just use the NetworkManager GUI tools to configure your wireless networks.



                enter image description here






                share|improve this answer















                You have to decide whether to run with NetworkManager or netplan.



                Ubuntu Desktop users should probably use NetworkManager, and use its GUI tools.



                Ubuntu Server users should be using netplan.



                Your .yaml file is a combination of both NetworkManager and netplan. Can't do that.



                If you're going to use NetworkManager, your .yaml should look like this...



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


                followed with a:



                sudo netplan --debug generate



                sudo netplan apply



                Then you need to configure /etc/network/interfaces with command syntax similar to, but not exactly, like the remainder of your existing .yaml file. However, rather than editing /etc/network/interfaces just use the NetworkManager GUI tools to configure your wireless networks.



                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 2 at 4:18

























                answered Jan 24 at 2:56









                heynnemaheynnema

                19.1k22156




                19.1k22156






























                    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%2f1112378%2fnetplan-configuration-doesnt-seem-to-be-taking-effect%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕