I am setting up a new server and installed Ubuntu Bionic, which uses Predictable Network Interface Names.
The installer is running on a rescue system, which still uses old interface names like eth0
, eth1
, but the newly installed system has configured the first network card as enp8s0
.
Using lshw
, the bus info for this card is:
bus info: pci@0000:08:00.0
I would like to set up the other network interfaces without booting into the newly installed system yet, but don't know how to determine the predictable network interface names for the other cards.
Using lshw
, I found another network card, which is currently disabled:
bus info: pci@0000:41:00.0
Is it possible to determine the predictable network interface name from this? Would it be something like enp41s0
?
I have searched for a while and could not find any tool which would simply list all the devices together with their predictable names.
Edit: Why do I not want to boot the new system to find out? Because this would add an extra step to the setup process. Using the old interface naming, I could run a script to set up the server from the rescue system provided by the hosting company and it was ready for use. Now I would have to set up the server minus the additional network config first. Then I have to set up networking manually once the new system has booted, just to know the names of the interfaces.