How to know the network name

Jerry Geis jerry.geis at gmail.com
Sat Oct 23 21:25:07 UTC 2021


On Sat, Oct 23, 2021 at 4:49 PM Colin Law <clanlaw at gmail.com> wrote:

> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Thanks - is there a command that spits out these names on a system ?
I tried biosdevname as a command - does not seem to be present.

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


More information about the ubuntu-users mailing list