Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Arp Table Hostnames showing incorrect IP

    Scheduled Pinned Locked Moved webGUI
    10 Posts 4 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jnbastoky
      last edited by

      On the Arp Table page under Diagnostics several of the entries list an IP address in the Hostname column. The IP addresses are in different subnets/VLANs and aren't even in use. This isn't the case for all entries, but for entries where this does occur I have static DHCP mapping configured for them.

      I don't get this result if I perform an arp -a command.

      Based a quick skim of the source code it looks like that hostname comes from a built-in php function gethostbyaddr().

      J 1 Reply Last reply Reply Quote 1
      • J
        jnbastoky @jnbastoky
        last edited by

        Here's a screenshot:
        arptable.jpg

        johnpozJ 1 Reply Last reply Reply Quote 1
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @jnbastoky
          last edited by johnpoz

          Yeah - its late here, will have to look at this in the morning.. But yeah something doesn't seem right..

          arp.png

          Ok maybe the 7.10 and 7.101 is something got cut off.. But 2.199 and 7.108??

          And 7.97 and 7.109??

          Confused - but too tired to dig into..

          But if I look at the actual arp table

          [21.02-RELEASE][admin@sg4860.local.lan]/root: arp -a | grep 192.168.2.199
          JohnsXR.local.lan (192.168.2.199) at f4:06:16:4f:f6:36 on igb2 expires in 1172 seconds [ethernet]
          [21.02-RELEASE][admin@sg4860.local.lan]/root: 
          
          [21.02-RELEASE][admin@sg4860.local.lan]/root: arp -a | grep 192.168.7.97
          ShieldTV.local.lan (192.168.7.97) at 00:04:4b:fd:40:de on igb5 expires in 379 seconds [ethernet]
          [21.02-RELEASE][admin@sg4860.local.lan]/root: 
          

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          johnpozJ 1 Reply Last reply Reply Quote 1
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @johnpoz
            last edited by

            Ok I think I figured out where they were coming from... dhcpd.leases file had some old stuff in it..

            I stopped dhcpd and remove the old stuff for 7.101,108 and .109 and that cleared those up.. For my 3.105 its just doesn't have a name - client doesn't give a name.. That is control for my garage door.. I will setup a reservation for that.

            You prob want to go through your dhcpd.leases file to see what if old leases that match up to the IPs your seeing odd stuff for in your arp table gui..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            J 1 Reply Last reply Reply Quote 0
            • J
              jnbastoky @johnpoz
              last edited by

              @johnpoz Unfortunately I had a drive failure shortly after this, so ended up having to rebuild my system. I'm not seeing the issue now, but it still seems like a bug. I had the same results with examining the arp table directly. Hostnames were resolved correctly there.

              I'll give it some time and see if it comes back.

              1 Reply Last reply Reply Quote 1
              • Bob.DigB
                Bob.Dig LAYER 8
                last edited by Bob.Dig

                I have this problem too!
                And it reminds me on that other thread I had opened, that sometimes the SMB connection via hostname would not work, maybe this is related?

                Capture2.jpg

                Problem is persistent.

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Bob.Dig
                  last edited by

                  clear out your old leases.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  Bob.DigB 1 Reply Last reply Reply Quote 0
                  • Bob.DigB
                    Bob.Dig LAYER 8 @johnpoz
                    last edited by Bob.Dig

                    @johnpoz I found two similar named files in one directory, do I have to do it for both?
                    And it is a bug and should be fixed I think.

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomashk
                      last edited by

                      Some time ago I reported this problem with experimental fix

                      https://redmine.pfsense.org/issues/11510

                      There is diff attached with my change but please note that I don't know enough to say if this is correct way to solve it. But I use it through System->Patches

                      1 Reply Last reply Reply Quote 1
                      • Bob.DigB
                        Bob.Dig LAYER 8
                        last edited by

                        So I deleted those files completely, seemed to help for the moment.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.