HOW TO CHANGE NIC ADDRESS (ID)?
-
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?
-
@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).
-
@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)
-
@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)
-
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
-
@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. -
@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.
-
@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.
-
@enesas I have just used Windows Notepad.
-
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
-
@stephenw10 Thanks. it worked for me