OPNsense Forum

English Forums => General Discussion => Topic started by: aab on January 22, 2023, 09:59:10 PM

Title: restoring from a backup
Post by: aab on January 22, 2023, 09:59:10 PM
I had opnsense which has the network interfaces as follows.
bxe0, bxe1, igd0 and igd1 

I am trying to restore on a new machine with a backup which was taken on the old one. The interfaces on the new machine are like eno0, eno1 etc


I want to move them to names like eno, eth1 and so on. I know that I can do it in the /etc/rc.conf

ifconfig_bxe0_name=eth0
but during the boot time the network interfaces are still bxe0, bxe1 etc. Is there any way I can change interface names I want before the kernel gets loaded ?

Thanks in advance
Title: Re: restoring from a backup
Post by: cookiemonster on January 22, 2023, 10:23:51 PM
No, you can not do that because they are more than just names. They are identifiers for the modules to use.
I did this and changing in the file /conf/config.xml worked for me but on a second attempt.
I downloaded the file, did a search and replace but very carefully eyeballing all and any occurrences looked rational to change.
Title: Re: restoring from a backup
Post by: newsense on January 23, 2023, 03:55:24 PM
Dustin has a helpful blog post:

https://homenetworkguy.com/how-to/migrate-opnsense-to-new-hardware/ (https://homenetworkguy.com/how-to/migrate-opnsense-to-new-hardware/)
Title: Re: restoring from a backup
Post by: cookiemonster on January 23, 2023, 04:59:01 PM
Yes, that just jogged my memory, thanks. I did download the file to modify that way from the UI. I'm pretty sure. I must have recalled that I did look in the filesystem too.