Rename network interface on Ubuntu 18.04

vi /etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
update-grub
vi /etc/netplan/50-cloud-init.yaml
network:
    ethernets:
        eth0:
            addresses: []
            dhcp: true
            optional: true
    versions: 2
netplan apply
reboot

See also