summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/ipv4-config.xml
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-07-16 17:29:50 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-08-30 07:33:38 -0700
commit86c0f8c549c2ad728e06f8bc11d805fe760e7df8 (patch)
tree9c71752eb9b2a01e4173b598df7f68e9c8d7b496 /nixos/doc/manual/configuration/ipv4-config.xml
parent1ff4b838758f36dc8c54995e104dd17ba08a65a4 (diff)
downloadnixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.gz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.bz2
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.lz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.xz
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.tar.zst
nixpkgs-86c0f8c549c2ad728e06f8bc11d805fe760e7df8.zip
Refactor nixos files relying on the old ipAddress / prefixLength / subnetMask attributes
Diffstat (limited to 'nixos/doc/manual/configuration/ipv4-config.xml')
-rw-r--r--nixos/doc/manual/configuration/ipv4-config.xml5
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/doc/manual/configuration/ipv4-config.xml b/nixos/doc/manual/configuration/ipv4-config.xml
index e2c51518349..053501b1736 100644
--- a/nixos/doc/manual/configuration/ipv4-config.xml
+++ b/nixos/doc/manual/configuration/ipv4-config.xml
@@ -12,12 +12,9 @@ interfaces.  However, you can configure an interface manually as
 follows:
 
 <programlisting>
-networking.interfaces.eth0 = { ipAddress = "192.168.1.2"; prefixLength = 24; };
+networking.interfaces.eth0.ip4 = [ { address = "192.168.1.2"; prefixLength = 24; } ];
 </programlisting>
 
-(The network prefix can also be specified using the option
-<literal>subnetMask</literal>,
-e.g. <literal>"255.255.255.0"</literal>, but this is deprecated.)
 Typically you’ll also want to set a default gateway and set of name
 servers: