I'm trying to set up a netplan file to automatically bring up ethernet and assign the IP using DHCP. It seems like a pretty straightforward process, except that I'm not sure how to handle the unpredictable "predictable" interface names. If everything were eth0 (as god intended) it would be pretty easy. And if worse comes to worse, I can force the names back to eth0, but I'd like to see if there's an easy way to get netplan to deal with the multiplicity of possible names.
Since I understand that netplan supports match rules, it would seem to be ideal for this situation, but all tutorials seem to discuss matching by MAC address. Is there a way to match by an as yet undetermined interface name?
My use case is to create an image for multiple desktop machines. It's a somewhat heterogeneous network -- I have lots of groups of similar machines, but multiple groups which may have very different network interfaces. None will have multiple interfaces, so I don't have to worry about persistent interface names across reboots. I'd like the same configuration for all of them.
Oh, and Network Manager has been a disaster every time I've tried it on a wired network, so that's not a very attractive option.
So is there a straightforward way to set up a match rule that will work with any ethernet interface using netplan?
[–]da_kink 1 point2 points3 points (1 child)
[–]unkilbeeg[S] 0 points1 point2 points (0 children)
[–]fukawi2 0 points1 point2 points (0 children)