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

    HOW TO CHANGE NIC ADDRESS (ID)?

    Hardware
    3
    16
    839
    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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      If the interface names are different then when you import the config it will ask you re-assign the interfaces to match the NICs in the new system.

      What NICs do you have in the hardware system?

      E 1 Reply Last reply Reply Quote 1
      • S
        SteveITS Galactic Empire @enesas
        last edited by

        @enesas Are you trying to scp/copy the file without restoring?

        Can you just set up high availability in which case the config syncs over but the interfaces do not (no longer) matter (unless using Suricata/Snort).

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        E 1 Reply Last reply Reply Quote 0
        • E
          enesas @SteveITS
          last edited by

          @SteveITS HA is not set. Because the real system has 10gbit SFP for LAN. There is a 1gbit nic for LAN in the virtual machine. (I don't know if I can use it this way)
          I do it as backup>restore from the interface.

          My goal is to quickly commission the virtual machine when there is a problem in the system. (with current rules)

          1 Reply Last reply Reply Quote 0
          • E
            enesas @stephenw10
            last edited by

            @stephenw10 I know this, but for example, when I do backup>restore, I need to assign these interfaces every time.
            4x 1gbit NIC (WAN)
            1x, sfp+ (LAN)

            ON VIRTUAL MACHINE, 4x 1gbit ethernet card (3x WAN 1x LAN)

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

              Try importing the config so you are familiar with the interface reassignment process.

              If you have a bunch of VLANs or other sub-interface types it can be easier to manually edit the interfaces in the config first.

              Steve

              E 1 Reply Last reply Reply Quote 0
              • E
                enesas @stephenw10
                last edited by

                @stephenw10 Yes there are many vlans.
                I want to manually name these interfaces with the same ID as the host machine, but how do I do it?
                If it has the same ID (example: em1, em2, em3, em4), everything will fall into place when you restore it.

                S 1 Reply Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @enesas
                  last edited by

                  @enesas The config file has entries like:

                  <interfaces>
                  <wan>
                  <enable/>
                  <if>ix3</if>
                  (...)
                  </wan>
                  

                  Or for VLAN it will be numbered: <if>ix3.20</if>

                  You can search for and replace ix3, then import.

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote ๐Ÿ‘ helpful posts!

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    enesas @SteveITS
                    last edited by

                    @SteveITS Yes, I tried this before with an xml editor whose name I don't remember. However, when I tried to restore the configuration file, it was corrupted. Is there an editor you can recommend? thanks.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SteveITS Galactic Empire @enesas
                      last edited by

                      @enesas I have just used Windows Notepad.

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote ๐Ÿ‘ helpful posts!

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

                        I would never use Notepad personally. Though it's been a few years since I broke a file with it. ๐Ÿ˜‰

                        Back when I used to run Windows I used Notepad++. Never had any issues with that.

                        Steve

                        E 1 Reply Last reply Reply Quote 2
                        • E
                          enesas @stephenw10
                          last edited by

                          @stephenw10 Thanks. it worked for me

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