git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #146967 from AndrewKvalheim/PermanentMACAddress

nixos/doc: improve example of renaming network interfaces

commitd616fde3aeb0acb592f271ad02689247aae823e0 authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com> dateWed 1 Dec 2021, 09:03 (5 years ago) parente54812412bab91
2 files changed+2−2
nixos/doc/manual/configuration/renaming-interfaces.section.md+1−1 nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml+1−1
nixos/doc/manual/configuration/renaming-interfaces.section.md+1−1
@@ -26,7 +26,7 @@ we assign the name `wan` to the interface with MAC address
2626
2727```nix
2828systemd.network.links."10-wan" = {
29− matchConfig.MACAddress = "52:54:00:12:01:01";
29+ matchConfig.PermanentMACAddress = "52:54:00:12:01:01";
3030 linkConfig.Name = "wan";
3131};
3232```
nixos/doc/manual/from_md/configuration/renaming-interfaces.section.xml+1−1
@@ -32,7 +32,7 @@
3232 </para>
3333 <programlisting language="bash">
3434systemd.network.links.&quot;10-wan&quot; = {
35− matchConfig.MACAddress = &quot;52:54:00:12:01:01&quot;;
35+ matchConfig.PermanentMACAddress = &quot;52:54:00:12:01:01&quot;;
3636 linkConfig.Name = &quot;wan&quot;;
3737};
3838</programlisting>