restoring from a backup

Started by aab, January 22, 2023, 09:59:10 PM

Previous topic - Next topic
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

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.


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.