How exactly are NetworkManager, networkd, netplan, ifupdown2, and iproute2 working together?

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











up vote
0
down vote

favorite












I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running:



oleg@eclectic:~$ sudo ps -ef | grep -i net
root 56 2 0 Oct11 ? 00:00:00 [netns]
root 1097 1 0 Oct11 ? 00:00:02 /usr/sbin/NetworkManager --no-daemon
root 1098 1 0 Oct11 ? 00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root 1250 1 0 Oct11 ? 00:00:02 /usr/sbin/inetd
root 1593 1097 0 Oct11 ? 00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper...


NetworkManager seems to be configured to handle "everything" by netplan:



oleg@eclectic:~$ cat /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager


I believe that netplan would hand everything off to networkd if NetworkManager was not installed.



There are also a bunch of files in /etc/network/, and I am not sure what is handling those. A lot of packages seem to use this directory:



oleg@eclectic:~$ dpkg -S /etc/network
avahi-daemon, ifupdown2, wpasupplicant, openvpn, postfix, netbase, avahi-autoipd, wireless-tools, clamav-freshclam: /etc/network


My initial thoughts after some Googling are that NetworkManager and networkd are both running, but netplan generates configuration such that only one is actually doing something. But I do not know how I would verify this, figure out the chain of operations, or configure it to suit my nefarious plans for dummy0.



Question: How exactly are NetworkManager, networkd, and netplan working together? In other words, as the computer boots up, which processes hand what of to what other processes? How do tools from packages like net-tools, ifupdown2, and iproute2 and directories like /etc/network/ fit into all this? And finally, how can I figure this out myself and learn the details using the command line?









share

























    up vote
    0
    down vote

    favorite












    I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running:



    oleg@eclectic:~$ sudo ps -ef | grep -i net
    root 56 2 0 Oct11 ? 00:00:00 [netns]
    root 1097 1 0 Oct11 ? 00:00:02 /usr/sbin/NetworkManager --no-daemon
    root 1098 1 0 Oct11 ? 00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
    root 1250 1 0 Oct11 ? 00:00:02 /usr/sbin/inetd
    root 1593 1097 0 Oct11 ? 00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper...


    NetworkManager seems to be configured to handle "everything" by netplan:



    oleg@eclectic:~$ cat /etc/netplan/01-network-manager-all.yaml 
    # Let NetworkManager manage all devices on this system
    network:
    version: 2
    renderer: NetworkManager


    I believe that netplan would hand everything off to networkd if NetworkManager was not installed.



    There are also a bunch of files in /etc/network/, and I am not sure what is handling those. A lot of packages seem to use this directory:



    oleg@eclectic:~$ dpkg -S /etc/network
    avahi-daemon, ifupdown2, wpasupplicant, openvpn, postfix, netbase, avahi-autoipd, wireless-tools, clamav-freshclam: /etc/network


    My initial thoughts after some Googling are that NetworkManager and networkd are both running, but netplan generates configuration such that only one is actually doing something. But I do not know how I would verify this, figure out the chain of operations, or configure it to suit my nefarious plans for dummy0.



    Question: How exactly are NetworkManager, networkd, and netplan working together? In other words, as the computer boots up, which processes hand what of to what other processes? How do tools from packages like net-tools, ifupdown2, and iproute2 and directories like /etc/network/ fit into all this? And finally, how can I figure this out myself and learn the details using the command line?









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running:



      oleg@eclectic:~$ sudo ps -ef | grep -i net
      root 56 2 0 Oct11 ? 00:00:00 [netns]
      root 1097 1 0 Oct11 ? 00:00:02 /usr/sbin/NetworkManager --no-daemon
      root 1098 1 0 Oct11 ? 00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
      root 1250 1 0 Oct11 ? 00:00:02 /usr/sbin/inetd
      root 1593 1097 0 Oct11 ? 00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper...


      NetworkManager seems to be configured to handle "everything" by netplan:



      oleg@eclectic:~$ cat /etc/netplan/01-network-manager-all.yaml 
      # Let NetworkManager manage all devices on this system
      network:
      version: 2
      renderer: NetworkManager


      I believe that netplan would hand everything off to networkd if NetworkManager was not installed.



      There are also a bunch of files in /etc/network/, and I am not sure what is handling those. A lot of packages seem to use this directory:



      oleg@eclectic:~$ dpkg -S /etc/network
      avahi-daemon, ifupdown2, wpasupplicant, openvpn, postfix, netbase, avahi-autoipd, wireless-tools, clamav-freshclam: /etc/network


      My initial thoughts after some Googling are that NetworkManager and networkd are both running, but netplan generates configuration such that only one is actually doing something. But I do not know how I would verify this, figure out the chain of operations, or configure it to suit my nefarious plans for dummy0.



      Question: How exactly are NetworkManager, networkd, and netplan working together? In other words, as the computer boots up, which processes hand what of to what other processes? How do tools from packages like net-tools, ifupdown2, and iproute2 and directories like /etc/network/ fit into all this? And finally, how can I figure this out myself and learn the details using the command line?









      share













      I am learning about Linux networking on my Kubuntu 18.04 workstation, and I see there that both NetworkManager and networkd-dispatcher are running:



      oleg@eclectic:~$ sudo ps -ef | grep -i net
      root 56 2 0 Oct11 ? 00:00:00 [netns]
      root 1097 1 0 Oct11 ? 00:00:02 /usr/sbin/NetworkManager --no-daemon
      root 1098 1 0 Oct11 ? 00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
      root 1250 1 0 Oct11 ? 00:00:02 /usr/sbin/inetd
      root 1593 1097 0 Oct11 ? 00:00:00 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper...


      NetworkManager seems to be configured to handle "everything" by netplan:



      oleg@eclectic:~$ cat /etc/netplan/01-network-manager-all.yaml 
      # Let NetworkManager manage all devices on this system
      network:
      version: 2
      renderer: NetworkManager


      I believe that netplan would hand everything off to networkd if NetworkManager was not installed.



      There are also a bunch of files in /etc/network/, and I am not sure what is handling those. A lot of packages seem to use this directory:



      oleg@eclectic:~$ dpkg -S /etc/network
      avahi-daemon, ifupdown2, wpasupplicant, openvpn, postfix, netbase, avahi-autoipd, wireless-tools, clamav-freshclam: /etc/network


      My initial thoughts after some Googling are that NetworkManager and networkd are both running, but netplan generates configuration such that only one is actually doing something. But I do not know how I would verify this, figure out the chain of operations, or configure it to suit my nefarious plans for dummy0.



      Question: How exactly are NetworkManager, networkd, and netplan working together? In other words, as the computer boots up, which processes hand what of to what other processes? How do tools from packages like net-tools, ifupdown2, and iproute2 and directories like /etc/network/ fit into all this? And finally, how can I figure this out myself and learn the details using the command line?







      networking networkmanager systemd-networkd netplan





      share












      share










      share



      share










      asked 5 mins ago









      Oleg

      6834924




      6834924

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f475146%2fhow-exactly-are-networkmanager-networkd-netplan-ifupdown2-and-iproute2-worki%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475146%2fhow-exactly-are-networkmanager-networkd-netplan-ifupdown2-and-iproute2-worki%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)