Ubuntu ARP reply configuration












0















I am wondering what/if there is any configuration that enables arp replies.



I have an Ubuntu machine with two interfaces - one is ethernet to a non-public LAN, the other is Wifi which connects to the public internet. I need internet access on the private LAN for one computer temporarily, so I set an SNAT so that the address on the private LAN is mapped to the WiFi network LAN.



Sending a ping outbounds to 8.8.8.8 hits, but on return my WiFi router doesn't know "who has" this natted address (192.168.7.33) so it sends an arp request.



I ran sudo arp -v -i wlp1s0 -s 192.168.7.33 84:7b:eb:35:a4:e0, where the hw addr is the hw addr associated with the ethernet link(I also ran the same command followed by 'pub' and it still didn't send). Here it is now in my arp table...:



Address                  HWtype  HWaddress           Flags Mask        Iface
192.168.7.33 ether 84:7b:eb:35:a4:e0 CM wlp1s0


However, the Ubuntu box still never replies to arps -



   19:26:59.542278 IP 192.168.7.33 > google-public-dns-a.google.com: 19:27:51.477054 IP 192.168.7.33 > 8.8.8.8: ICMP echo request, id 3312, seq 2692, length 64
19:27:51.493773 ARP, Request who-has 192.168.7.33 tell 192.168.7.254, length 46


The first message is the ping on the way to google, the second is the router looking for 192.168.7.33.



Referencing this post,
Linux does not reply to ARP request messages if requested IP address is associated with another (disabled) interface, I checked my kernel's Ip routing tables:



sudo ip route show table local
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
broadcast 192.168.3.0 dev enp0s31f6 proto kernel scope link src 192.168.3.12
local 192.168.3.12 dev enp0s31f6 proto kernel scope host src 192.168.3.12
broadcast 192.168.3.255 dev enp0s31f6 proto kernel scope link src 192.168.3.12
broadcast 192.168.7.0 dev wlp1s0 proto kernel scope link src 192.168.7.117
local 192.168.7.117 dev wlp1s0 proto kernel scope host src 192.168.7.117
broadcast 192.168.7.255 dev wlp1s0 proto kernel scope link src 192.168.7.117


In this question, the user had a route set for reaching the address(unlike my NAT), so I went ahead and added a route as well, and it still did not ARP:



route -n



Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.7.254 0.0.0.0 UG 600 0 0 wlp1s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp1s0
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s31f6
192.168.7.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0
192.168.7.33 192.168.3.10 255.255.255.255 UGH 0 0 0 enp0s31f6


Is there a setting on Ubuntu that I can change so that my machine will reply to ARP requests? If not, where is the next place to look to see why we're not responding?










share|improve this question



























    0















    I am wondering what/if there is any configuration that enables arp replies.



    I have an Ubuntu machine with two interfaces - one is ethernet to a non-public LAN, the other is Wifi which connects to the public internet. I need internet access on the private LAN for one computer temporarily, so I set an SNAT so that the address on the private LAN is mapped to the WiFi network LAN.



    Sending a ping outbounds to 8.8.8.8 hits, but on return my WiFi router doesn't know "who has" this natted address (192.168.7.33) so it sends an arp request.



    I ran sudo arp -v -i wlp1s0 -s 192.168.7.33 84:7b:eb:35:a4:e0, where the hw addr is the hw addr associated with the ethernet link(I also ran the same command followed by 'pub' and it still didn't send). Here it is now in my arp table...:



    Address                  HWtype  HWaddress           Flags Mask        Iface
    192.168.7.33 ether 84:7b:eb:35:a4:e0 CM wlp1s0


    However, the Ubuntu box still never replies to arps -



       19:26:59.542278 IP 192.168.7.33 > google-public-dns-a.google.com: 19:27:51.477054 IP 192.168.7.33 > 8.8.8.8: ICMP echo request, id 3312, seq 2692, length 64
    19:27:51.493773 ARP, Request who-has 192.168.7.33 tell 192.168.7.254, length 46


    The first message is the ping on the way to google, the second is the router looking for 192.168.7.33.



    Referencing this post,
    Linux does not reply to ARP request messages if requested IP address is associated with another (disabled) interface, I checked my kernel's Ip routing tables:



    sudo ip route show table local
    broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
    local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
    local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
    broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
    broadcast 192.168.3.0 dev enp0s31f6 proto kernel scope link src 192.168.3.12
    local 192.168.3.12 dev enp0s31f6 proto kernel scope host src 192.168.3.12
    broadcast 192.168.3.255 dev enp0s31f6 proto kernel scope link src 192.168.3.12
    broadcast 192.168.7.0 dev wlp1s0 proto kernel scope link src 192.168.7.117
    local 192.168.7.117 dev wlp1s0 proto kernel scope host src 192.168.7.117
    broadcast 192.168.7.255 dev wlp1s0 proto kernel scope link src 192.168.7.117


    In this question, the user had a route set for reaching the address(unlike my NAT), so I went ahead and added a route as well, and it still did not ARP:



    route -n



    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    0.0.0.0 192.168.7.254 0.0.0.0 UG 600 0 0 wlp1s0
    169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp1s0
    192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s31f6
    192.168.7.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0
    192.168.7.33 192.168.3.10 255.255.255.255 UGH 0 0 0 enp0s31f6


    Is there a setting on Ubuntu that I can change so that my machine will reply to ARP requests? If not, where is the next place to look to see why we're not responding?










    share|improve this question

























      0












      0








      0








      I am wondering what/if there is any configuration that enables arp replies.



      I have an Ubuntu machine with two interfaces - one is ethernet to a non-public LAN, the other is Wifi which connects to the public internet. I need internet access on the private LAN for one computer temporarily, so I set an SNAT so that the address on the private LAN is mapped to the WiFi network LAN.



      Sending a ping outbounds to 8.8.8.8 hits, but on return my WiFi router doesn't know "who has" this natted address (192.168.7.33) so it sends an arp request.



      I ran sudo arp -v -i wlp1s0 -s 192.168.7.33 84:7b:eb:35:a4:e0, where the hw addr is the hw addr associated with the ethernet link(I also ran the same command followed by 'pub' and it still didn't send). Here it is now in my arp table...:



      Address                  HWtype  HWaddress           Flags Mask        Iface
      192.168.7.33 ether 84:7b:eb:35:a4:e0 CM wlp1s0


      However, the Ubuntu box still never replies to arps -



         19:26:59.542278 IP 192.168.7.33 > google-public-dns-a.google.com: 19:27:51.477054 IP 192.168.7.33 > 8.8.8.8: ICMP echo request, id 3312, seq 2692, length 64
      19:27:51.493773 ARP, Request who-has 192.168.7.33 tell 192.168.7.254, length 46


      The first message is the ping on the way to google, the second is the router looking for 192.168.7.33.



      Referencing this post,
      Linux does not reply to ARP request messages if requested IP address is associated with another (disabled) interface, I checked my kernel's Ip routing tables:



      sudo ip route show table local
      broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
      local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
      local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
      broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
      broadcast 192.168.3.0 dev enp0s31f6 proto kernel scope link src 192.168.3.12
      local 192.168.3.12 dev enp0s31f6 proto kernel scope host src 192.168.3.12
      broadcast 192.168.3.255 dev enp0s31f6 proto kernel scope link src 192.168.3.12
      broadcast 192.168.7.0 dev wlp1s0 proto kernel scope link src 192.168.7.117
      local 192.168.7.117 dev wlp1s0 proto kernel scope host src 192.168.7.117
      broadcast 192.168.7.255 dev wlp1s0 proto kernel scope link src 192.168.7.117


      In this question, the user had a route set for reaching the address(unlike my NAT), so I went ahead and added a route as well, and it still did not ARP:



      route -n



      Kernel IP routing table
      Destination Gateway Genmask Flags Metric Ref Use Iface
      0.0.0.0 192.168.7.254 0.0.0.0 UG 600 0 0 wlp1s0
      169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp1s0
      192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s31f6
      192.168.7.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0
      192.168.7.33 192.168.3.10 255.255.255.255 UGH 0 0 0 enp0s31f6


      Is there a setting on Ubuntu that I can change so that my machine will reply to ARP requests? If not, where is the next place to look to see why we're not responding?










      share|improve this question














      I am wondering what/if there is any configuration that enables arp replies.



      I have an Ubuntu machine with two interfaces - one is ethernet to a non-public LAN, the other is Wifi which connects to the public internet. I need internet access on the private LAN for one computer temporarily, so I set an SNAT so that the address on the private LAN is mapped to the WiFi network LAN.



      Sending a ping outbounds to 8.8.8.8 hits, but on return my WiFi router doesn't know "who has" this natted address (192.168.7.33) so it sends an arp request.



      I ran sudo arp -v -i wlp1s0 -s 192.168.7.33 84:7b:eb:35:a4:e0, where the hw addr is the hw addr associated with the ethernet link(I also ran the same command followed by 'pub' and it still didn't send). Here it is now in my arp table...:



      Address                  HWtype  HWaddress           Flags Mask        Iface
      192.168.7.33 ether 84:7b:eb:35:a4:e0 CM wlp1s0


      However, the Ubuntu box still never replies to arps -



         19:26:59.542278 IP 192.168.7.33 > google-public-dns-a.google.com: 19:27:51.477054 IP 192.168.7.33 > 8.8.8.8: ICMP echo request, id 3312, seq 2692, length 64
      19:27:51.493773 ARP, Request who-has 192.168.7.33 tell 192.168.7.254, length 46


      The first message is the ping on the way to google, the second is the router looking for 192.168.7.33.



      Referencing this post,
      Linux does not reply to ARP request messages if requested IP address is associated with another (disabled) interface, I checked my kernel's Ip routing tables:



      sudo ip route show table local
      broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
      local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
      local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
      broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
      broadcast 192.168.3.0 dev enp0s31f6 proto kernel scope link src 192.168.3.12
      local 192.168.3.12 dev enp0s31f6 proto kernel scope host src 192.168.3.12
      broadcast 192.168.3.255 dev enp0s31f6 proto kernel scope link src 192.168.3.12
      broadcast 192.168.7.0 dev wlp1s0 proto kernel scope link src 192.168.7.117
      local 192.168.7.117 dev wlp1s0 proto kernel scope host src 192.168.7.117
      broadcast 192.168.7.255 dev wlp1s0 proto kernel scope link src 192.168.7.117


      In this question, the user had a route set for reaching the address(unlike my NAT), so I went ahead and added a route as well, and it still did not ARP:



      route -n



      Kernel IP routing table
      Destination Gateway Genmask Flags Metric Ref Use Iface
      0.0.0.0 192.168.7.254 0.0.0.0 UG 600 0 0 wlp1s0
      169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp1s0
      192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s31f6
      192.168.7.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp1s0
      192.168.7.33 192.168.3.10 255.255.255.255 UGH 0 0 0 enp0s31f6


      Is there a setting on Ubuntu that I can change so that my machine will reply to ARP requests? If not, where is the next place to look to see why we're not responding?







      ubuntu networking arp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      RyanRyan

      1043




      1043






















          0






          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f502433%2fubuntu-arp-reply-configuration%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f502433%2fubuntu-arp-reply-configuration%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

          CARDNET

          Boot-repair Failure: Unable to locate package grub-common:i386

          濃尾地震