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

    LAN_Bridge set MACC address doesn't stick on reboot

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    11 Posts 2 Posters 1.2k 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.
    • T
      teknikalcrysis
      last edited by

      Not sure if this belongs here or in the General Question section, but here goes…

      I just recently upgraded to version 2.4.3_1 from version 2.2.6
      I did a configuration backup of 2.2.6 and used that to restore setting, rules, etc on 2.4.3_1
      Interface Config:
      WAN - re0 (No MAC specified)
      LAN - Bridge0 (LAN_Bridge - re1, re2, ath0 - MAC address specified, but doesnt stick)
      OPT1 - re1 (LAN Port 1 - No MAC specified)
      OPT2 - re2 (LAN Port 2 - No MAC specified)
      OPT3 - ath0 (Wifi - No MAC specified)

      When I go to interface assignment and click the LAN_Bridge, I have a MAC address specified. I have saved and applied changed. But when I reboot pfSense, the specified MAC address for LAN_Bridge is changed. After boot complete, I can go into LAN_Bridge interface settings and my specified MAC is still there; however when I got to Status>Interfaces ...the MAC address listed does not match what I have set. Seems that no matter how many times I click save and apply, the change does not get applied and revery to a random MAC on every reboot...

      While this is not a HUGE problem, all my computers recognize the New MAC address after every pfSense reboot as a New Network and so the computers default to it being a public network until I specify to the PC's that it is a private network...This also is going to eventually make my registry contain a lot of unnecessary Network identification info...

      Any way to fix this issue? Any help will be greatly appreciated!

      2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
      AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

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

        0_1528499982514_MAC_address.png

        2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
        AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          There is an open bug for that:
          https://redmine.pfsense.org/issues/8138

          Feel free to add anything there that isn't covered.

          Steve

          1 Reply Last reply Reply Quote 1
          • T
            teknikalcrysis
            last edited by

            Okay, thank you for your reply and the info

            Any way to edit a config file manually to force the change and bypass the gui?

            2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
            AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Not easily. It's not a config file issue but part of the script that applies the config.

              You could use a shellcmd to spoof it manually.

              0_1528814234769_Selection_424.png

              Steve

              T 1 Reply Last reply Reply Quote 1
              • T
                teknikalcrysis @stephenw10
                last edited by

                @stephenw10 said in LAN_Bridge set MACC address doesn't stick on reboot:

                Not easily. It's not a config file issue but part of the script that applies the config.

                You could use a shellcmd to spoof it manually.

                0_1528814234769_Selection_424.png

                Steve

                Is this something that sticks through a reboot, or is this shell command required to force change after every boot sequence?

                2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
                AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Shellcmds get run at boot so this would be applied every time.

                  https://www.netgate.com/docs/pfsense/development/executing-commands-at-boot-time.html#shellcmd-option

                  You can enter it in the config or use the shellcmd package to give you gui access as I am in the screenshot.

                  Steve

                  T 1 Reply Last reply Reply Quote 1
                  • T
                    teknikalcrysis @stephenw10
                    last edited by

                    @stephenw10
                    Awesome! Thank you! I will give this a try!
                    If results are undesirable, can this change be reverted?

                    2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
                    AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      You can just delete the shellcmd and reboot. I tested it here though and it seemed to work fine.

                      Steve

                      T 1 Reply Last reply Reply Quote 1
                      • T
                        teknikalcrysis @stephenw10
                        last edited by

                        @stephenw10 Just what I wanted to hear!! Excellent! Thank you very much...I will test and report back

                        2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
                        AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

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

                          This worked perfectly!!!

                          2.4.3-RELEASE-p1 (amd64) - FreeBSD 11.1-RELEASE-p10
                          AMD G-T40E Processor - 2 CPUs: 1 package(s) x 2 core(s)

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