How to know the network name

Jerry Geis jerry.geis at gmail.com
Sat Oct 23 17:53:11 UTC 2021


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

I need to know the correct ens4 type network name so when the
machine reboots and tries to install Ubuntu 20.04 with a static address -
all is correct. How do I get  that name?

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20211023/85e36af2/attachment.html>


More information about the ubuntu-users mailing list