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

Static arp in DHCP overwritten

Scheduled Pinned Locked Moved DHCP and DNS
12 Posts 3 Posters 1.3k 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.
  • N
    netbug
    last edited by Nov 16, 2023, 6:03 PM

    Hi,

    When adding a static DHCP mapping we select "Create an ARP Table Static Entry for this MAC & IP Address pair."
    After saving the static mapping can be found in the ARP table shortly, but it is overwritten after 15 to 60 seconds by the default value of 1200 seconds.

    We are using a Netgate 3100 with 23.09-RELEASE (arm).

    Please look into this and provide a fix if possible.

    Any help would be appreciated.
    Thanks.

    J M 2 Replies Last reply Nov 16, 2023, 6:39 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @netbug
      last edited by Nov 16, 2023, 6:39 PM

      @netbug there was some previous issues with static arp.. But I thought those were all addressed in 23.09 - there was a patch available before.

      But I have a static arp set for one of my IPs in dhcp.. And shows perm for the arp entry

      staticarp.jpg

      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.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • N
        netbug
        last edited by Nov 16, 2023, 10:24 PM

        @johnpoz , thanks for your reply!

        The IP that i have added as static arp in the DHCP server is: 192.168.50.60

        But at this moment it show up as expiring:
        [23.09-RELEASE][admin@pfSense.localdomain]/root: arp -a | grep -i 192.168.50.60
        ? (192.168.50.60) at aa:11:bb:cc:1b:aa on mvneta1 expires in 1197 seconds [ethernet]

        When I add, by means of testing, the static arp via the command line I get the following results:

        Add the static mapping:
        [23.09-RELEASE][admin@pfSense.localdomain]/root: /usr/sbin/arp -s 192.168.50.60 aa:11:bb:cc:1b:aa

        Then view the results:
        [23.09-RELEASE][admin@pfSense.localdomain]/root: arp -a | grep -i 192.168.50.60 && date
        ? (192.168.50.60) at aa:11:bb:cc:1b:aa on mvneta1 permanent [ethernet]
        Thu Nov 16 23:15:57 CET 2023

        After e few moments again it shows:
        [23.09-RELEASE][admin@pfSense.localdomain]/root: arp -a | grep -i 192.168.50.60 && date
        ? (192.168.50.60) at aa:11:bb:cc:1b:aa on mvneta1 expires in -1700172951 seconds [ethernet]
        Thu Nov 16 23:16:04 CET 2023

        And a few moments later it states:
        [23.09-RELEASE][admin@pfSense.localdomain]/root: arp -a | grep -i 192.168.50.60 && date
        ? (192.168.50.60) at aa:11:bb:cc:1b:aa on mvneta1 expires in 1187 seconds [ethernet]
        Thu Nov 16 23:17:53 CET 2023

        After that the static mapping is gone and replaced with the default expire of 1200 seconds.

        J 1 Reply Last reply Nov 17, 2023, 12:04 AM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @netbug
          last edited by Nov 17, 2023, 12:04 AM

          @netbug

          I am unable to duplicate this on my 23.09

          arp.jpg

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • N
            netbug
            last edited by Nov 17, 2023, 6:33 PM

            @johnpoz

            Thanks for testing.

            In my test the device was turned on and online on the given IP.
            Was that also the case in your test?

            Furthermore I have noticed that it sometimes takes longer before it is overwritten.
            Maybe you can check again after e few hours and then check again if it is still permanent?

            Also: Does anyone have an idea why there is sometimes a negative expire: -1700172951?
            For example: ? (192.168.50.60) at aa:11:bb:cc:1b:aa on mvneta1 expires in -1700172951 seconds [ethernet]

            The only entry that remains constantly permanent is the LAN interface IP: pfSense.localdomain

            The rest all changes back to expiring in e few seconds to max a few minutes.

            1 Reply Last reply Reply Quote 0
            • N
              netbug
              last edited by Nov 17, 2023, 6:56 PM

              Ok, did some additional tests and it becomes clearer now.

              • When i ad a static ARP via the DHCP server on a lease that is offline, it stays permanent.
              • The moment the device comes online, the behavior starts as described.
              • Also when i refresh the lease using dhclient -r and than dhclient the static arp entry turn expiring.
              J 1 Reply Last reply Nov 17, 2023, 7:16 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @netbug
                last edited by johnpoz Nov 17, 2023, 7:28 PM Nov 17, 2023, 7:16 PM

                @netbug well as you can see in my previous one that was a real client.. But let me me set say static for my PC and see if I can get it go away from static arp..

                BRB

                edit: ok there seems to be something still wrong with statics..

                So I set a static for my 192.168.9.100 in the dhcp server

                staticset.jpg

                And once hit apply that seems to be working, BUT!!! if I just do a renew of the dhcp is seems to stick - but when I release and renew then the arp is no longer set to static

                arpstatic.jpg

                So yeah something doesn't smell right for sure.. Once it set static on pfsense, it should always be static..

                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.7.2, 24.11

                1 Reply Last reply Reply Quote 1
                • N
                  netbug
                  last edited by netbug Nov 17, 2023, 7:40 PM Nov 17, 2023, 7:39 PM

                  @johnpoz

                  Good to hear you can replicate it.

                  Could you let me know what the next step will be to create a bug report?
                  Or is this ticket the bug report :)

                  J 2 Replies Last reply Nov 17, 2023, 11:58 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @netbug
                    last edited by Nov 17, 2023, 11:58 PM

                    @netbug I believe there was redmine about this already.. Might be able to re open it, maybe its some sort of regression, I thought it was fixed at one point. At least the symptom that was reported then - but this looks different, if I recall correctly the static entries were not surviving a reboot.

                    I don't think this was brought up back in the previous issues with static arp..

                    The static not surviving a reboot is for something pfsense could do something about. But his is odd, a client gettings IP that was reserved for it and set as static - shouldn't somehow undo the static??

                    When I get a chance I will look in redmine if there is something related to this - if not I will open one and point to this thread.

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 1
                    • J
                      johnpoz LAYER 8 Global Moderator @netbug
                      last edited by johnpoz Nov 18, 2023, 3:39 PM Nov 18, 2023, 2:08 PM

                      @netbug ok there is a redmine that talks about this

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

                      Here is simple way to duplicate it.. Reposted with more info, and also showing that can duplicate it really at will. So notice I had static set, but arp not showing static

                      notstatic.jpg

                      See the 192.168.9.100, but if I hit save in there then it shows up as static again.

                      static.jpg

                      Now if you just do a renew on the dhcp client it seems to stay static - but have noticed it go to that large neg number

                      largeneg.jpg

                      But if I do a full /release and then renew on the client, its back to dynamic

                      dynamic.jpg

                      edit: so just some more info.. Notice that static setting for 9.10, that is my nas and it actually has the IP set on the nas static. I just put that static reservation in there from a previous arp issue where they were not surviving reboot. But that client since its not dhcp the arp entry stays as perm..

                      dhcplease.jpg

                      Looks like this is the correct redmine

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

                      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.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • N
                        netbug
                        last edited by netbug Nov 20, 2023, 9:48 PM Nov 20, 2023, 9:47 PM

                        @johnpoz Thanks for your help. Will wait for a fix.

                        PS: This issue started after the latest upgrade of pFsense.

                        1 Reply Last reply Reply Quote 0
                        • J johnpoz referenced this topic on Nov 22, 2023, 5:29 AM
                        • J johnpoz referenced this topic on Nov 30, 2023, 11:22 PM
                        • J johnpoz referenced this topic on Mar 6, 2024, 9:09 PM
                        • M
                          mlharmon @netbug
                          last edited by Jun 19, 2024, 12:59 AM

                          @netbug For what it's worth, I ran into this same issue recently and found a workaround that seems to be effective.

                          In pfSense, I added the cron package and then created a job that runs every 19 minutes with the following command that creates a static arp entry such as:

                          arp -s 192.168.9.10 00:11:32:7b:29:7d
                          

                          Hopefully you or someone else stumbling across this post will find this information helpful.

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