systemd-networkd: configure based on type rather than name, add a comment on MACAddress matching

Resolves: warnings on potentially unpredictable interface names.
This commit is contained in:
Aminda Suomalainen 2023-07-04 11:24:29 +03:00
parent 6de1498ebd
commit 8cc9353374
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
[Match]
Name=eth0
#Name=*
# Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address
#MACAddress=
Type=ether
[Link]
# My devices generally also have WiFi so lack of ethernet is not a reason

View File

@ -1,5 +1,8 @@
[Match]
Name=wlan0
#Name=*
# Can be {colon,hyphen,dot}-delimited hexadecimal or IPv{4,6} address
#MACAddress=
Type=wlan
[Link]
# Always set administrative state to up. Implies RequiredForOnline=yes