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

HOW TO CHANGE NIC ADDRESS (ID)?

Hardware
3
16
837
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.
  • E
    enesas @enesas
    last edited by Jan 6, 2024, 9:37 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • E
      enesas @stephenw10
      last edited by Jan 6, 2024, 9:41 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 6, 2024, 10:23 PM

        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 Jan 7, 2024, 9:30 AM Reply Quote 1
        • S
          SteveITS Galactic Empire @enesas
          last edited by Jan 6, 2024, 10:44 PM

          @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 Jan 7, 2024, 9:25 AM Reply Quote 0
          • E
            enesas @SteveITS
            last edited by Jan 7, 2024, 9:25 AM

            @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 Jan 7, 2024, 9:30 AM

              @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
              • S
                stephenw10 Netgate Administrator
                last edited by Jan 7, 2024, 3:40 PM

                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 Jan 7, 2024, 7:43 PM Reply Quote 0
                • E
                  enesas @stephenw10
                  last edited by Jan 7, 2024, 7:43 PM

                  @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 Jan 7, 2024, 8:00 PM Reply Quote 0
                  • S
                    SteveITS Galactic Empire @enesas
                    last edited by Jan 7, 2024, 8:00 PM

                    @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 Jan 7, 2024, 8:50 PM Reply Quote 0
                    • E
                      enesas @SteveITS
                      last edited by Jan 7, 2024, 8:50 PM

                      @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 Jan 7, 2024, 9:09 PM Reply Quote 0
                      • S
                        SteveITS Galactic Empire @enesas
                        last edited by Jan 7, 2024, 9:09 PM

                        @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
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jan 7, 2024, 9:25 PM

                          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 Jan 8, 2024, 6:31 PM Reply Quote 2
                          • E
                            enesas @stephenw10
                            last edited by Jan 8, 2024, 6:31 PM

                            @stephenw10 Thanks. it worked for me

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