Changing NIC caused me a whole load of pain

Started by jonm, Today at 01:12:11 PM

Previous topic - Next topic
I changed the NIC in my OPnsense box from a quad Gbit to a dual 10Gbit card. This meant the interfaces changed - what were previously igb0/1 became ix0/1 after the change.

So I logged in on the console and ran option 1) Assign interfaces.

But this caused Unbound and ISC to be disabled and Dnsmasq to be enabled. It took a lot of faffing around to sort this out. Should this have happened? Or did I do the wrong thing when I changed the NIC? I'd like to learn from this experience... 

Thanks :)

You could have change the assignment in "Interface - Assignment" in the dropdown of WAN/LAN/OPT1. It's abstracted so all of your rules would have moved as well and all services would have used the new interfaces.
Hardware:
DEC740

But I couldn't connect to the web interface because I had no network connections - only the console.

I guess not having a management interface can make things harder.
So next time, OOB makes a change easier too.
Hardware:
DEC740

For a while I had an old mac mini with additional thunderbolt ethernet ports as a backup for a DEC750. I used to download the config from the DEC750 and run it through sed (global search and replace tool) to replace all interface names, like "s/igb0/bge1/g" and so on. One may even map multiple interfaces from the old setup to one in the new one. Worked like a charm for me.

Just note down the interface names on the originating machine, log into a default installation on the destination machine and you'll see which interface names need to be replaced and how. Modify the config file and restore it on the new hardware. Same in your case, when changing interface adaptor cards.

Careful with replacements I know of people who replaced strings inside certificates that way.

But if you're careful thats viable.
Hardware:
DEC740

Today at 05:30:39 PM #6 Last Edit: Today at 05:33:30 PM by mooh
Good advice. Of course it is best to search for <if>igb0</if> while replacing

Quote from: mooh on Today at 05:01:51 PMFor a while I had an old mac mini with additional thunderbolt ethernet ports as a backup for a DEC750. I used to download the config from the DEC750 and run it through sed (global search and replace tool) to replace all interface names, like "s/igb0/bge1/g" and so on. One may even map multiple interfaces from the old setup to one in the new one. Worked like a charm for me.

Just note down the interface names on the originating machine, log into a default installation on the destination machine and you'll see which interface names need to be replaced and how. Modify the config file and restore it on the new hardware. Same in your case, when changing interface adaptor cards.

That's a neat trick  - thanks.