how do I configure dummy interface with netplan on ubunty 17.10?
how do I configure dummy interface with netplan?
I could manually configure them with systemd:
Configure the dummy interface to setup at boot:
edit /etc/systemd/network/dummy0.netdev
add
[NetDev]
Name=dummy0
Kind=dummy
edit /etc/systemd/network/dummy0.network
add
[Match]
Name=dummy0
[Network]
Address=169.254.1.1/32
how do I get the same result with netplan?
There is a bug: https://bugs.launchpad.net/netplan/+bug/1773997
After it is fixed you should be able to create /etc/netplan/02-dummy.yaml
with content:
network:
version: 2
renderer: networkd
bridges:
dummy0:
dhcp4: no
dhcp6: no
accept-ra: no
interfaces: [ ]
addresses:
- 169.254.1.1/32
And execute
( umask 0022; netplan apply; );