I currently have a dual x2 port gigabit eth card.
Currently running OPNsense 23.7.6.
Has worked great for years with this card.
But, I want to replace with a x4 port card.
What would be the best way to do this?
Should I do a completely new install and rewrite of my config (after replacing card)?
Or, is there another simpler (not necessarily better) way? Would rather not have to enter the entire configuration in again if possible.
Best way to plan is knowing if the new card uses the same driver.
If they are the same, then you can save config, replace the card and from the console menu assign the interfaces as before (note the ordering, it is important), and then your new ports will be the next in number.
@cookiemonster
Makes sense.
Current card is labeled as Rosewill and uses "RealTek 8168/8111" driver looks like:
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x9e00-0x9eff mem 0xfd5ff000-0 xfd5fffff,0xfd9fc000-0xfd9fffff irq 18 at device 0.0 on pci4
..
re2: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xbe00-0xbeff mem 0xfdcff000-0 xfdcfffff irq 17 at device 0.0 on pci5
The new card is "Gigabit Quad Port Ethernet Server Adapter NetXtreme BCM5719" so I assume it uses a broadcom driver of some sort.
Bottom line - sounds like I am out of luck. lol
Thanks for reply, though..
Not necessarily.
Save config, replace card. Assign interfaces from console menu. The configuration might be reapplied to the new interfaces.
Worst case you put the old one back after saving the new config to a different place until you can have more time for a search and replace.
Gotcha. Yeah, that was how I was going to approach it, initially. Will still give that a try..
Wasn't sure if just reassigning the interfaces (correctly) was going to be enough.. will report back. thanks!
Quote from: cookiemonster on October 12, 2023, 11:34:11 PM
Not necessarily.
Save config, replace card. Assign interfaces from console menu. The configuration might be reapplied to the new interfaces.
Worst case you put the old one back after saving the new config to a different place until you can have more time for a search and replace.
It worked fine! After some confusion (my fault) trying to reassign, I finally got it right.
The interface names changed from re(1-2) to bge(0-3).
I also had to get an IP passthru on an AT&T router to work (it's fiber/sfp transceiver)
2 WANs / 1 LAN / 1 WLAN now. Everything 100% working. Until i find problems tomorrow. haha
Thanks for the help.
Nice!