Network interface name changed suddenly (ens18 -> enp6s18) - where to change back

It because the predictable network interface names. Grrr, again. It hit me already sometimes in different places

The Problem is already known, like seen on: Kein Zugriff auf UCS Server nach upgrade auf 4.3

To repair the renamed network interface name, I did the following:

  1. Get Network running (its needed functionally for ucr commit)
  • nano /etc/network/interfaces
  • change enp6s18 to ens18
  • /etc/init.d/networking restart
  1. Change the name
  • nano /etc/univention/base.conf
  • you see interfaces/primary is ens18 or need to be set (The name, which the system names the nic at startup)
  • change all “enp6s18” to ens18 at “interfaces/enp6s18/” to “interfaces/ens18”
  1. Generate new Config files:
  • ucr commit

Like metioned in Step 1 the network has to be functional, because at ucr commit there is traffic to the ldap-server, etc. Your need to “be quick or be dead”, because the ucs system changes to the old/false config every few minutes.

Good luck,

vmanz