Moving towards NetworkManager
silver.bullet at zoho.com
Fri Jul 29 12:08:32 UTC 2016
On Fri, 29 Jul 2016 13:50:30 +0200, Oliver Grawert wrote:
>cou can turn it off by putting net.ifnames=0 on the kernel command
A while back it was possible to do it by a rule file, now there's the
need to add it to the kernel command line. From the beginning I didn't
waste my time and simply migrated to the new bizarre names.
basename $(ls -d /sys/class/net/enp?s0)
for my scripts. If I remove or mount PCI audio cards, not at
runtime, just after the PC powered off, the number of the integrated
network device changes with the next startup.
So I for example use
dhcpcd $(basename $(ls -d /sys/class/net/enp?s0))
this works, as long as you only have got e.g. one on-board device. For
me the ? works, but perhaps using a * is better.
If you have several devices, or you connect and disconnect USB
network devices, it's likely more tricky.
More information about the ubuntu-users