Automatic network card configuration?
If you want a generic netplan config then you can try something like the following. It will match all physical wired network cards and use DHCP to configure them.
network:
version: 2
ethernets:
zz-all-en:
match:
name: "en*"
dhcp4: true
zz-all-eth:
match:
name: "eth*"
dhcp4: true
I am copying this configuration directly from the current server installer configuration.
Links
- https://serverfault.com/questions/923328/is-there-a-way-to-automatically-add-network-interfaces-to-systemd-networkd-and-o