Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of...











up vote
0
down vote

favorite












I'm trying to set up networking with netplan and networkd as renderer on an 18.04 machine. It runs the desktop distribution because it's connected to my TV and used for multimedia, but I'll call it a server because it's easier to explain and will run dns & dhcp servers once I get the network up and running properly.



I noticed that when I configure the network via netplan, I can't ping the server from my Windows 10 clients (not tested on other OS') unless I ping the said client from the server first. On the clients, I get:



Reply from [CLIENT'S OWN IP]: Destination host unreachable.


But after pinging from the server first, the client has an ARP entry and all is well.



I've searched solutions for far too much time and confirmed that:




  • Subnets are correct - everything is DHCP from my router at the moment to rule this out

  • There is no MAC or IP address conflict

  • Power management is off on the interface

  • It doesn't seem like a driver issue given the only change is network-manager vs networkd

  • Firewalls are OK

  • Router is OK


At the moment the machine is connected via WiFi and to change the configuration away from network-manager I just renamed /etc/netplan/01-network-manager-all.yaml so it's not used, and created /etc/netplan/config.yaml as follows:



network:
version: 2
renderer: networkd
wifis:
wlp3s0:
dhcp4: yes
dhcp6: no
access-points:
"MyAP":
password: "MyPassword"


/etc/network/interfaces is just iface lo inet loopback



I read that disabling of network-manager wasn't required as it will just report that interfaces configured manually are unmanaged, so the above change is all I have made.



Using Wireshark I confirmed that when configured with netplan, the server doesn't receive ARP packets when I ping from a client with no ARP entry for the server IP. It does receive them when network-manager is taking care of the interface; first one to tell the router, then one to tell the client.



Thanks in advance for any help!



EDIT 1: additional information:



/etc/NetworkManager/system-connections/[NETWORKNAME] is:



[connection]
id=XXXX
uuid=992e3be7-dea0-49b7-a474-60832236b8bf
type=wifi
permissions=
timestamp=1530425561

[wifi]
mac-address=C4:E9:84:E1:61:FF
mac-address-blacklist=
mode=infrastructure
seen-bssids=50:C7:BF:38:01:91;
ssid=XXXX

[wifi-security]
key-mgmt=wpa-psk
psk=XXXX

[ipv4]
dns=8.8.8.8;8.8.4.4;
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto


The netplan-generated networkd configuration at /run/systemd/network/10-netplan-wlp3s0.network is:



[Match]
Name=wlp3s0

[Network]
DHCP=ipv4

[DHCP]
UseMTU=true
RouteMetric=600


EDIT 2: a closer look at Wireshark shows that when using systemd-networkd configuration, there is no IGMP activity, no MDNS activity other than where the server is the source, and the only ARP activity is between gateway and server, until the server attempts to ping a client. Once the server attempts to ping the client, the first ARP is 'who has Client IP tell server IP', then immediately following, 'who has server IP, tell client IP', and finally the ping goes out to the client. From here on, the client can ping the server.



The whole time, the server can access any network services, internal and external.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I'm trying to set up networking with netplan and networkd as renderer on an 18.04 machine. It runs the desktop distribution because it's connected to my TV and used for multimedia, but I'll call it a server because it's easier to explain and will run dns & dhcp servers once I get the network up and running properly.



    I noticed that when I configure the network via netplan, I can't ping the server from my Windows 10 clients (not tested on other OS') unless I ping the said client from the server first. On the clients, I get:



    Reply from [CLIENT'S OWN IP]: Destination host unreachable.


    But after pinging from the server first, the client has an ARP entry and all is well.



    I've searched solutions for far too much time and confirmed that:




    • Subnets are correct - everything is DHCP from my router at the moment to rule this out

    • There is no MAC or IP address conflict

    • Power management is off on the interface

    • It doesn't seem like a driver issue given the only change is network-manager vs networkd

    • Firewalls are OK

    • Router is OK


    At the moment the machine is connected via WiFi and to change the configuration away from network-manager I just renamed /etc/netplan/01-network-manager-all.yaml so it's not used, and created /etc/netplan/config.yaml as follows:



    network:
    version: 2
    renderer: networkd
    wifis:
    wlp3s0:
    dhcp4: yes
    dhcp6: no
    access-points:
    "MyAP":
    password: "MyPassword"


    /etc/network/interfaces is just iface lo inet loopback



    I read that disabling of network-manager wasn't required as it will just report that interfaces configured manually are unmanaged, so the above change is all I have made.



    Using Wireshark I confirmed that when configured with netplan, the server doesn't receive ARP packets when I ping from a client with no ARP entry for the server IP. It does receive them when network-manager is taking care of the interface; first one to tell the router, then one to tell the client.



    Thanks in advance for any help!



    EDIT 1: additional information:



    /etc/NetworkManager/system-connections/[NETWORKNAME] is:



    [connection]
    id=XXXX
    uuid=992e3be7-dea0-49b7-a474-60832236b8bf
    type=wifi
    permissions=
    timestamp=1530425561

    [wifi]
    mac-address=C4:E9:84:E1:61:FF
    mac-address-blacklist=
    mode=infrastructure
    seen-bssids=50:C7:BF:38:01:91;
    ssid=XXXX

    [wifi-security]
    key-mgmt=wpa-psk
    psk=XXXX

    [ipv4]
    dns=8.8.8.8;8.8.4.4;
    dns-search=
    method=auto

    [ipv6]
    addr-gen-mode=stable-privacy
    dns-search=
    method=auto


    The netplan-generated networkd configuration at /run/systemd/network/10-netplan-wlp3s0.network is:



    [Match]
    Name=wlp3s0

    [Network]
    DHCP=ipv4

    [DHCP]
    UseMTU=true
    RouteMetric=600


    EDIT 2: a closer look at Wireshark shows that when using systemd-networkd configuration, there is no IGMP activity, no MDNS activity other than where the server is the source, and the only ARP activity is between gateway and server, until the server attempts to ping a client. Once the server attempts to ping the client, the first ARP is 'who has Client IP tell server IP', then immediately following, 'who has server IP, tell client IP', and finally the ping goes out to the client. From here on, the client can ping the server.



    The whole time, the server can access any network services, internal and external.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to set up networking with netplan and networkd as renderer on an 18.04 machine. It runs the desktop distribution because it's connected to my TV and used for multimedia, but I'll call it a server because it's easier to explain and will run dns & dhcp servers once I get the network up and running properly.



      I noticed that when I configure the network via netplan, I can't ping the server from my Windows 10 clients (not tested on other OS') unless I ping the said client from the server first. On the clients, I get:



      Reply from [CLIENT'S OWN IP]: Destination host unreachable.


      But after pinging from the server first, the client has an ARP entry and all is well.



      I've searched solutions for far too much time and confirmed that:




      • Subnets are correct - everything is DHCP from my router at the moment to rule this out

      • There is no MAC or IP address conflict

      • Power management is off on the interface

      • It doesn't seem like a driver issue given the only change is network-manager vs networkd

      • Firewalls are OK

      • Router is OK


      At the moment the machine is connected via WiFi and to change the configuration away from network-manager I just renamed /etc/netplan/01-network-manager-all.yaml so it's not used, and created /etc/netplan/config.yaml as follows:



      network:
      version: 2
      renderer: networkd
      wifis:
      wlp3s0:
      dhcp4: yes
      dhcp6: no
      access-points:
      "MyAP":
      password: "MyPassword"


      /etc/network/interfaces is just iface lo inet loopback



      I read that disabling of network-manager wasn't required as it will just report that interfaces configured manually are unmanaged, so the above change is all I have made.



      Using Wireshark I confirmed that when configured with netplan, the server doesn't receive ARP packets when I ping from a client with no ARP entry for the server IP. It does receive them when network-manager is taking care of the interface; first one to tell the router, then one to tell the client.



      Thanks in advance for any help!



      EDIT 1: additional information:



      /etc/NetworkManager/system-connections/[NETWORKNAME] is:



      [connection]
      id=XXXX
      uuid=992e3be7-dea0-49b7-a474-60832236b8bf
      type=wifi
      permissions=
      timestamp=1530425561

      [wifi]
      mac-address=C4:E9:84:E1:61:FF
      mac-address-blacklist=
      mode=infrastructure
      seen-bssids=50:C7:BF:38:01:91;
      ssid=XXXX

      [wifi-security]
      key-mgmt=wpa-psk
      psk=XXXX

      [ipv4]
      dns=8.8.8.8;8.8.4.4;
      dns-search=
      method=auto

      [ipv6]
      addr-gen-mode=stable-privacy
      dns-search=
      method=auto


      The netplan-generated networkd configuration at /run/systemd/network/10-netplan-wlp3s0.network is:



      [Match]
      Name=wlp3s0

      [Network]
      DHCP=ipv4

      [DHCP]
      UseMTU=true
      RouteMetric=600


      EDIT 2: a closer look at Wireshark shows that when using systemd-networkd configuration, there is no IGMP activity, no MDNS activity other than where the server is the source, and the only ARP activity is between gateway and server, until the server attempts to ping a client. Once the server attempts to ping the client, the first ARP is 'who has Client IP tell server IP', then immediately following, 'who has server IP, tell client IP', and finally the ping goes out to the client. From here on, the client can ping the server.



      The whole time, the server can access any network services, internal and external.










      share|improve this question















      I'm trying to set up networking with netplan and networkd as renderer on an 18.04 machine. It runs the desktop distribution because it's connected to my TV and used for multimedia, but I'll call it a server because it's easier to explain and will run dns & dhcp servers once I get the network up and running properly.



      I noticed that when I configure the network via netplan, I can't ping the server from my Windows 10 clients (not tested on other OS') unless I ping the said client from the server first. On the clients, I get:



      Reply from [CLIENT'S OWN IP]: Destination host unreachable.


      But after pinging from the server first, the client has an ARP entry and all is well.



      I've searched solutions for far too much time and confirmed that:




      • Subnets are correct - everything is DHCP from my router at the moment to rule this out

      • There is no MAC or IP address conflict

      • Power management is off on the interface

      • It doesn't seem like a driver issue given the only change is network-manager vs networkd

      • Firewalls are OK

      • Router is OK


      At the moment the machine is connected via WiFi and to change the configuration away from network-manager I just renamed /etc/netplan/01-network-manager-all.yaml so it's not used, and created /etc/netplan/config.yaml as follows:



      network:
      version: 2
      renderer: networkd
      wifis:
      wlp3s0:
      dhcp4: yes
      dhcp6: no
      access-points:
      "MyAP":
      password: "MyPassword"


      /etc/network/interfaces is just iface lo inet loopback



      I read that disabling of network-manager wasn't required as it will just report that interfaces configured manually are unmanaged, so the above change is all I have made.



      Using Wireshark I confirmed that when configured with netplan, the server doesn't receive ARP packets when I ping from a client with no ARP entry for the server IP. It does receive them when network-manager is taking care of the interface; first one to tell the router, then one to tell the client.



      Thanks in advance for any help!



      EDIT 1: additional information:



      /etc/NetworkManager/system-connections/[NETWORKNAME] is:



      [connection]
      id=XXXX
      uuid=992e3be7-dea0-49b7-a474-60832236b8bf
      type=wifi
      permissions=
      timestamp=1530425561

      [wifi]
      mac-address=C4:E9:84:E1:61:FF
      mac-address-blacklist=
      mode=infrastructure
      seen-bssids=50:C7:BF:38:01:91;
      ssid=XXXX

      [wifi-security]
      key-mgmt=wpa-psk
      psk=XXXX

      [ipv4]
      dns=8.8.8.8;8.8.4.4;
      dns-search=
      method=auto

      [ipv6]
      addr-gen-mode=stable-privacy
      dns-search=
      method=auto


      The netplan-generated networkd configuration at /run/systemd/network/10-netplan-wlp3s0.network is:



      [Match]
      Name=wlp3s0

      [Network]
      DHCP=ipv4

      [DHCP]
      UseMTU=true
      RouteMetric=600


      EDIT 2: a closer look at Wireshark shows that when using systemd-networkd configuration, there is no IGMP activity, no MDNS activity other than where the server is the source, and the only ARP activity is between gateway and server, until the server attempts to ping a client. Once the server attempts to ping the client, the first ARP is 'who has Client IP tell server IP', then immediately following, 'who has server IP, tell client IP', and finally the ping goes out to the client. From here on, the client can ping the server.



      The whole time, the server can access any network services, internal and external.







      networking 18.04 network-manager netplan systemd-networkd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 at 1:34

























      asked Nov 24 at 3:10









      Tim Rankin

      11




      11






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.



          I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...



          A kind soul in the Ubuntu IRC channel guided me to do:



          sudo systemctl mask network-manager.service
          sudo systemctl mask NetworkManager-dispatcher.service
          sudo systemctl mask NetworkManager-wait-online.service


          This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.






          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%2f1095566%2funable-to-ping-18-04-desktop-unless-this-machine-first-pings-the-client-when-us%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








            up vote
            0
            down vote













            After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.



            I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...



            A kind soul in the Ubuntu IRC channel guided me to do:



            sudo systemctl mask network-manager.service
            sudo systemctl mask NetworkManager-dispatcher.service
            sudo systemctl mask NetworkManager-wait-online.service


            This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.






            share|improve this answer

























              up vote
              0
              down vote













              After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.



              I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...



              A kind soul in the Ubuntu IRC channel guided me to do:



              sudo systemctl mask network-manager.service
              sudo systemctl mask NetworkManager-dispatcher.service
              sudo systemctl mask NetworkManager-wait-online.service


              This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.



                I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...



                A kind soul in the Ubuntu IRC channel guided me to do:



                sudo systemctl mask network-manager.service
                sudo systemctl mask NetworkManager-dispatcher.service
                sudo systemctl mask NetworkManager-wait-online.service


                This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.






                share|improve this answer












                After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.



                I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...



                A kind soul in the Ubuntu IRC channel guided me to do:



                sudo systemctl mask network-manager.service
                sudo systemctl mask NetworkManager-dispatcher.service
                sudo systemctl mask NetworkManager-wait-online.service


                This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 25 at 1:32









                Tim Rankin

                11




                11






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f1095566%2funable-to-ping-18-04-desktop-unless-this-machine-first-pings-the-client-when-us%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

                    Quarter-circle Tiles

                    build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

                    Mont Emei