How to know the network name

Colin Law clanlaw at gmail.com
Sat Oct 23 20:47:14 UTC 2021


On Sat, 23 Oct 2021 at 18:54, Jerry Geis <jerry.geis at gmail.com> wrote:
>
> I am converting machines that used eth0 and eth1 in the past.
>
> I need to specify the eno1, eno2, ens3, ens4 etcc... name on the "kernel" boot line - as I am doing a static IP install and the kernel command line needs to know - in addition the machine has two NICS - and I have to know which NIC is which ... as eth0 does not have internet access - but eth1 does.
>
> So on an old centos 6/7 machine - how do I know what the network will be named to so I can specify it on the kernel command line like:
>
> ip=192.168.122.200::192.168.122.1:255.255.255.0:ens4:none

This explains how the interface names are derived from the hardware
configuration
https://en.wikipedia.org/wiki/Consistent_Network_Device_Naming

Colin




More information about the ubuntu-users mailing list