Re: rules for interface naming for on-board cards

Mandeep Sandhu <[email protected]> Mon, 2 May 2016 09:52:04 -0700
Newsgroups gmane.linux.kernel.kernelnewbies,gmane.linux.hotplug.devel
Message-ID <CAC+QLdTcFSqump4hD4mP67zWJSqcNVJR0aL+aDx0MqL_conCqw@mail.gmail.com>
>
> If the name contains a %d format string, the first available device
> name with the given base is used; assigned numbers start at zero.
>
> On my base machine, I have 1 NIC card which is onboard, rest I can
> remove and plug.
> For the onboard card I get the interfaces as em1-4, while all the
> other cards I get names as p1p2, p3p4 etc.

This looks like systemd's way of naming network interfaces (aka
predictable network interface names). Are you running a systemd
enabled system?

If so, look at this systemd guide for the naming convention:

https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

HTH,
-mandeep


>
> Does Udev know the difference.
>
> How are these names given, definitely there must be some configuration
> which is used to distinguish on-board card vs removable.
>
> Thanks.
>
> _______________________________________________
> Kernelnewbies mailing list
> [email protected]
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies