OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: CLI_Novice on September 12, 2022, 07:18:59 pm

Title: Best Practice for Changing Physical Interfaces
Post by: CLI_Novice on September 12, 2022, 07:18:59 pm
Hello,

I am running 21.7.8-amd64 using VLANs on a single NIC Lenovo ThinkCentre M73. So I utilized VLANS and a VLAN aware switch. I want to delete the VLANS, add USB NICs and make the native NIC the WAN port.

Is there a "simple" way or best practice to save all the settings (LAN DHCP, FW rules, Static mapping etc...) before deleting the interfaces, then apply them to newly created ones?

I tried something similar a few years ago and had to re-create everything.

Thanks a Bunch!

Cary
Title: Re: Best Practice for Changing Physical Interfaces
Post by: Demusman on September 12, 2022, 08:08:40 pm
Don't delete them.
Just reassign them.
Best way is to use the console menu but you can do it from the webgui as long as you aren't connected to one of the interfaces you're trying to reassign.
Title: Re: Best Practice for Changing Physical Interfaces
Post by: Patrick M. Hausen on September 12, 2022, 08:35:32 pm
USB NICs are frequently flakey and not really recommended. Just saying.
Title: Re: Best Practice for Changing Physical Interfaces
Post by: CLI_Novice on September 14, 2022, 05:55:05 pm
USB NICs are frequently flakey and not really recommended. Just saying.

Thank You for the quick response, My TP-Link VLAn aware switch is probably more flakey, it's a temporary measure until I obtain a multi interface unit.
Title: Re: Best Practice for Changing Physical Interfaces
Post by: EdwinKM on September 14, 2022, 07:35:47 pm
Not sure if it works, but if you export the config file, rename/delete stuff in the xml and import the new one?