mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
Merge pull request #146967 from AndrewKvalheim/PermanentMACAddress
nixos/doc: improve example of renaming network interfaces
This commit is contained in:
commit
d616fde3ae
@ -26,7 +26,7 @@ we assign the name `wan` to the interface with MAC address
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
systemd.network.links."10-wan" = {
|
systemd.network.links."10-wan" = {
|
||||||
matchConfig.MACAddress = "52:54:00:12:01:01";
|
matchConfig.PermanentMACAddress = "52:54:00:12:01:01";
|
||||||
linkConfig.Name = "wan";
|
linkConfig.Name = "wan";
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<programlisting language="bash">
|
<programlisting language="bash">
|
||||||
systemd.network.links."10-wan" = {
|
systemd.network.links."10-wan" = {
|
||||||
matchConfig.MACAddress = "52:54:00:12:01:01";
|
matchConfig.PermanentMACAddress = "52:54:00:12:01:01";
|
||||||
linkConfig.Name = "wan";
|
linkConfig.Name = "wan";
|
||||||
};
|
};
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
Reference in New Issue
Block a user