Hi all, happy new year!
I’ve been playing around with IncusOS over the holidays with a new machine, but just today received a new NIC to install (upgrading from the built-in 1GbE interface to a 2.5GbE interface).
But how can I use it? The new interface doesn’t work when installed, and also breaks the old interface.
I think the problem is that initially, the working configuration was that my 1G NIC is given the name enp4s0. Indeed on a live USB I have laying around, I can see with only the 1G NIC connected, lspci reports 04:00.0 for this NIC (which I think corresponds to enp4s0 with the predictable naming scheme).
But when I install the 2.5G NIC alongside (unable to remove the 1G NIC), I can see in the live USB that the new card is now on 04:00.0, with the old 1G NIC pushed down to 05:00.0 (so much for a predictability!)
As a consequence, my understanding is the old NIC would now be found on enp5s0 and the new NIC replaces enp4s0.
But this causes problems for IncusOS that I can see is still trying to bring the network up on the originally installed enp4s0. I get a timeout error, I assume due to the fact that the network configuration (specficially the hwaddr field) now doesn’t match the new card.
Assuming I’m not barking up the wrong tree with the above, how can I proceed? The only way I can access IncusOS is by unplugging the new NIC, reverting to the original hardware state at install time.
I can then use incus admin os system network edit to change settings. But I’m not sure what to do here. I have tried changing to the future expected hardware state after shutting down and reinstalling the new NIC, by setting the new hwaddr on enp4s0, but that doesn’t work, it gives me some errors. After a hopeful reboot, the network still doesn’t come up (as presumably the configuration didn’t stick). Instead I need to remove the new NIC, back to the originally installed state, to have the network come up correctly.
So my attempts at diagnosis above might be way off. Regardless, I’m not sure how to proceed. I’m tempted to reinstall IncusOS with the hope it correctly configures things with the new hardware state, but I still think it useful to know if this is a recoverable situation.
Cheers in advance!