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

    [Solved in 2.1] Add only once static ARP Entry

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 2.7k 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 Offline
      nexus
      last edited by

      Hi,

      For an unknown reason my layer 2 switch don't respond to ARP requests for its admin interface. (works fine with a dd-wrt device on same subnet).

      For the record pfsense - em0 - DHCP - 10.0.10.1/27 ===== Switch port 3 (pvid 10, Unttaged vlan 10) === port 7 (pvid 10, untagged vlan 10) === dd-wrt device.

      The vlan 10 is said as management vlan in the switch configuration.

      Netgear guys seems don't care about my issue, so I will try to fix it with help of pfsense.

      The main idea is to set the arp entry as static for this ip address.

      In the DHCP section, there is the option "Enable Static ARP Entries" which seems to work after adding a DHCP static mapping below.

      The main question is regarding the Note : Only the machines listed below will be able to communicate with the firewall on this NIC.

      I'm not sure to understand well why / and what it will happens if another device is connect to this subnet without a static DHCP mapping entry.

      Is there another way to do that ?

      Thanks for the Hint :)

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

        So from my limited understand with pfsense/freebsd if you do the thing in dhcp your basically turning off arp resolution.  This restricts traffic to only known macs

        Now what it seems you want to be able to do is create a static entry that survives reboot because your having a hard time arping for that device.  But you still want normal arp resolution to happen when devices on the network.

        I don't think there is an option for that without doing some sort of script you run and load your macs you want into the table at boot..  I think in could normally do something like that in rc.config - but with pfsense doing its own thing on boot that might be a bit more complicated.

        I think your best bet might be to just load the shellcmd package
        http://doc.pfsense.org/index.php/Executing_commands_at_boot_time

        and then put in whatever command(s) you need to create your arp entry.

        arp -s hostname ether_addr [temp] [blackhole | reject] [pub [only]]
        http://www.freebsd.org/cgi/man.cgi?query=arp&apropos=0&sektion=8&manpath=FreeBSD+8.3-RELEASE&arch=default&format=html

        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 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          On 2.1 there is an option on the DHCP static mapping to do static ARP for just that entry, which will do what you need there.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • N Offline
            nexus
            last edited by

            Hmmm how mature the 2.1 is at the moment ? :p

            OH RC I see :) I will give it a try. Can I update from nano 2.0.3 from the firmware menu (I mean will it crash all my settings :p).

            Thnaks

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

              I have been running 2.1 since it came out - and have not had any major issues with it..  But I only use it in a home setup, not production work setup.

              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 25.07.1 | Lab VMs 2.8.1, 25.07.1

              1 Reply Last reply Reply Quote 0
              • N Offline
                nexus
                last edited by

                Same here for home purpose (which looks like a personal datacenter now). I will take a shot with this release.

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

                  I run it via vm on esxi host..  When I went VM it really cleared up some space and lowered my electric vs having 4 different boxes running..

                  Nice about running it vm, is even if there is an issue with a snap or something - click and your back to snapshot you too before you upgraded.. That is if you took the snapsnot ;)

                  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 25.07.1 | Lab VMs 2.8.1, 25.07.1

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nexus
                    last edited by

                    Works like a charm with 2.1 RC1, lots of good improvements btw thanks !

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