• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Mar 27, 2021, 9:15 PM

    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 Mar 27, 2021, 9:20 PM Reply Quote 1
    • J
      jnbastoky @jnbastoky
      last edited by Mar 27, 2021, 9:20 PM

      Here's a screenshot:
      arptable.jpg

      J 1 Reply Last reply Mar 28, 2021, 4:30 AM Reply Quote 1
      • J
        johnpoz LAYER 8 Global Moderator @jnbastoky
        last edited by johnpoz Mar 28, 2021, 4:35 AM Mar 28, 2021, 4:30 AM

        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

        J 1 Reply Last reply Mar 28, 2021, 1:26 PM Reply Quote 1
        • J
          johnpoz LAYER 8 Global Moderator @johnpoz
          last edited by Mar 28, 2021, 1:26 PM

          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 Apr 3, 2021, 9:59 PM Reply Quote 0
          • J
            jnbastoky @johnpoz
            last edited by Apr 3, 2021, 9:59 PM

            @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
            • B
              Bob.Dig LAYER 8
              last edited by Bob.Dig Apr 4, 2021, 10:09 AM Apr 4, 2021, 8:59 AM

              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.

              J 1 Reply Last reply Apr 4, 2021, 12:25 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @Bob.Dig
                last edited by Apr 4, 2021, 12:25 PM

                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

                B 1 Reply Last reply Apr 4, 2021, 4:22 PM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @johnpoz
                  last edited by Bob.Dig Apr 4, 2021, 4:23 PM Apr 4, 2021, 4:22 PM

                  @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 Apr 4, 2021, 5:41 PM

                    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
                    • B
                      Bob.Dig LAYER 8
                      last edited by Apr 4, 2021, 5:59 PM

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

                      1 Reply Last reply Reply Quote 0
                      1 out of 10
                      • First post
                        1/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received