On 2018-04-04 15:21, Russell Coker via luv-main wrote:
https://www.freedesktop.org/software/systemd/man/systemd.network.html
https://wiki.archlinux.org/index.php/systemd-networkd
https://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html
The above 3 URLs document the systemd-netorkd service, the last one notes
"when configuration is updated and systemd-networkd is restarted, netdev
interfaces for which configuration was removed will not be dropped, and may
need to be cleaned up manually". So it seems that restarting systemd-networkd
might not do what is desired. But I have never wanted to use it so I don't
know a lot about it.
I believe that the traditional Debian network configuration (ifup/ifdown etc)
developed in the mid 90's is for most systems the best way of doing things.
The only exception I've found so far is wireless networks on laptops for which
NetworkManager is usually quite good (apart from when it breaks and refuses to
do anything). If you use ifup/ifdown then systemd won't know that much about
what you are doing.
[Match] Name=en*
Could be useful if you are sure you will only have one network card, particularly as predictable network interface names comes in, can mean every computer has a different name for its network interface. Or:
[Match] MACAddress=12:34:56:78:90:ab
If you want to bind to an interface directly by its mac address.