Pin interface to specific name in microvm-extras

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-07 22:49:16 +02:00
parent 05cf178c7a
commit 9549ef1003
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -336,6 +336,10 @@ in
}
];
services.udev.extraRules = ''
ATTR{address}=="02:00:00:00:${intToHex cfg.groupId}:${intToHex cfg.taskId}", NAME="eth0"
'';
networking.interfaces."eth0" = {
ipv4.addresses = [
{