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

    Rename network interface?

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 4 Posters 2.1k 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.
    • P
      planetinse
      last edited by planetinse

      Iam setting up a HA cluster, for some uknown reason the master has an OPT8 interface that i have renamed to LAN3 - but on the cluster partner that was OPT4 after basic install, i renamed it to LAN3 - but now i cant sync CARP addresses nor firewall rules. (for that specific interface), its "vmx2" on both machines, so i have a hard time understanding why...

      HA slave says interface does not exist.

      ideas?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @planetinse
        last edited by

        @planetinse
        Ensure that the interfaces are in the same order on both nodes (Interfaces > Interface Assignments).

        P 1 Reply Last reply Reply Quote 0
        • P
          planetinse @viragomann
          last edited by

          @viragomann they are in exact same order

          only difference i can spot is that its called OPT8 vs OPT4 in the CLI

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @planetinse
            last edited by

            @planetinse said in Rename network interface?:

            only difference i can spot is that its called OPT8 vs OPT4 in the CLI

            The OPTx names pfSense originally uses?
            If so these have to be the same.

            You can also check the original name in Status > Interfaces. They are WAN, LAN, OPT1, OPT2,...
            The have to match on both boxes.

            P 1 Reply Last reply Reply Quote 0
            • P
              planetinse @viragomann
              last edited by

              @viragomann They dont match - so how can i rename them, for some reason the original box has (i guess due do adding/removing network interfaces in the past)

              OPT1, OPT2, OPT3, OPT8

              and the new box

              OPT1, OPT2, OPT3, OPT4

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

                Yeah those logical interface names are what pfSense uses for all the rules and firewall states. They must match in an HA pair.
                At some point the first firewall had other interfaces added and then removed which is why it's up to OPT8.

                The easiest way to do this is usually to edit the config from the secondary directly so it dies match and then restore it. It shouldn't be that difficult with only one mismatched interface to find/replace OPT4 with OPT8. There is always some risk of a typo with editing the config of course.

                Steve

                P 1 Reply Last reply Reply Quote 0
                • P
                  planetinse @stephenw10
                  last edited by

                  @stephenw10 any clue where this config is stored?

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @planetinse
                    last edited by

                    @planetinse
                    Export it: Diagnostics > Backup & Restore > Backup & Restore
                    Modify it and re-import it again.

                    P 1 Reply Last reply Reply Quote 3
                    • P
                      planetinse @viragomann
                      last edited by planetinse

                      @viragomann no this is lower level, only place where i can see OPT name (since i have renamed them in Web-interface) is in the CLI

                      EDIT - however i see it in backup file - LET ME TRY :)

                      EDIT2 - IT WORKED !! - thank you @viragomann !!

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

                        Nice result!

                        noplanN 1 Reply Last reply Reply Quote 0
                        • noplanN
                          noplan @stephenw10
                          last edited by

                          hehe worked here tooooooo

                          no more OPT13 ....

                          greets from the alps @viragomann !

                          V 1 Reply Last reply Reply Quote 0
                          • V
                            viragomann @noplan
                            last edited by

                            @noplan said in Rename network interface?:

                            OPT13 ....

                            I suspect you deleted and recreated interfaces quite often.
                            😀

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