Debian 10 backward compatibility with eth0

Solution 1:

You can try to use systemd.link for that purpose and rename ens5 to eth0. The interface can be matched based on different criteria e.g. MAC address, PCI slot, Original Name, etc. and then you can link it, meaning you can then perform different actions on it, including renaming it.

Here is an example:

Example: /etc/systemd/network/10-eth.link

This example assigns the fixed name "eth0" to the interface with the MAC address 00:a0:de:63:7a:e6:

[Match]
MACAddress=00:a0:de:63:7a:e6
[Link]
Name=eth0

More info can be found in this Debian Wiki web page: https://wiki.debian.org/NetworkInterfaceNames or the systemd.link man page: https://manpages.debian.org/buster/udev/systemd.link.5.en.html