Virtual Device on Ubuntu with netplan

19 February 2020
1) Enable networkd
systemctl enable  systemd-networkd
systemctl disable NetworkManager
systemctl stop NetworkManager
systemctl start systemd-networkd

2) Add virtual interface (2 files) /etc/systemd/network:

a) 25-veth.netdev

[NetDev]
Name=venp01
Kind=tap

[Tap]
MultiQueue=yes
PacketInfo=yes

b) 90-venp01.network

[Match]
Name=venp01

[Link]
RequiredForOnline=no

[Network] 
ConfigureWithoutCarrier=true 
Address=192.168.2.1/24

c) access right for files 644

chmod 644 /etc/systemd/network/90-venp01.network
chmod 644 /etc/systemd/network/25-veth.netdev

3) Restart networkd

ip link delete venp01
systemctl restart systemd-networkd