OPNsense Forum

English Forums => General Discussion => Topic started by: cake on September 08, 2023, 01:58:58 AM

Title: saved configuration work on new hardware?
Post by: cake on September 08, 2023, 01:58:58 AM
I have a chinese board with 4 ethernet ports and a intel j1900. If i buy another mini pc with 4 ports can I load the config file from the old one? How similar does the hardware need to be?

Thanks
Title: Re: saved configuration work on new hardware?
Post by: Maurice on September 08, 2023, 02:25:19 AM
Ideally, it uses the same Ethernet driver. You can check here which NICs share the same driver:
https://www.freebsd.org/releases/13.2R/hardware/

Otherwise, you'd have to re-assign the interfaces. Not a big deal. You could also manually edit the config.xml before restoring it.

Cheers
Maurice
Title: Re: saved configuration work on new hardware?
Post by: cake on September 09, 2023, 04:16:28 AM
Thanks for the reply. I cant find the exact same box as before, I think it may have been discontinued. I found a new version of the older hardware with diffrent nics, but I think I may try a newer cpu as well.
The nic in the one im looking at is Intel i225 2.5G with a  n5105 processor which seems kinda popular. I believe my J1900 cpu/board used 4* Intel WG82583 lan controllers.

Im wondering if the naming would be diffrent and I would have to edit the onfig xml on that one? I imagine this is changing name from eth0 to some other name.
Title: Re: saved configuration work on new hardware?
Post by: Maurice on September 09, 2023, 12:18:40 PM
2.5G uses a different driver, so you'll have to re-assign the interfaces. Current interface names should be em* or igb*, I225 will be igc*. You can simply search & replace these in the config backup.

CPU shouldn't matter for the OPNsense config.
Title: Re: saved configuration work on new hardware?
Post by: cake on September 09, 2023, 01:21:46 PM
Thanks Maurice