From 12bab91d3ba343c8dee5093da0eab38136752d60 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Sun, 21 Nov 2021 20:12:31 -0800 Subject: [PATCH] nixos/doc: improve example of renaming network interfaces For reliably identifying network interfaces, `PermanentMACAddress` is likely to be preferable to `MACAddress`. NetworkManager in particular commonly changes the MAC address of wireless interfaces. Reference: - https://www.freedesktop.org/software/systemd/man/systemd.link.html#PermanentMACAddress= --- nixos/doc/manual/configuration/renaming-interfaces.section.md | 2 +- .../from_md/configuration/renaming-interfaces.section.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/configuration/renaming-interfaces.section.md b/nixos/doc/manual/configuration/renaming-interfaces.section.md index b124e8303fee..18390c959b24 100644 --- a/nixos/doc/manual/configuration/renaming-interfaces.section.md +++ b/nixos/doc/manual/configuration/renaming-interfaces.section.md @@ -26,7 +26,7 @@ we assign the name `wan` to the interface with MAC address ```nix systemd.network.links."10-wan" = { - matchConfig.MACAddress = "52:54:00:12:01:01"; + matchConfig.PermanentMACAddress = "52:54:00:12:01:01"; linkConfig.Name = "wan"; }; ``` diff --git a/nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml b/nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml index 1c32e30b3f85..88c9e624c82f 100644 --- a/nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml +++ b/nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml @@ -32,7 +32,7 @@ systemd.network.links."10-wan" = { - matchConfig.MACAddress = "52:54:00:12:01:01"; + matchConfig.PermanentMACAddress = "52:54:00:12:01:01"; linkConfig.Name = "wan"; };