diff options
author | William A. Kennington III <william@wkennington.com> | 2014-07-16 17:29:50 -0500 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-08-30 07:33:38 -0700 |
commit | 86c0f8c549c2ad728e06f8bc11d805fe760e7df8 (patch) | |
tree | 9c71752eb9b2a01e4173b598df7f68e9c8d7b496 /nixos/doc/manual/configuration | |
parent | 1ff4b838758f36dc8c54995e104dd17ba08a65a4 (diff) |
Refactor nixos files relying on the old ipAddress / prefixLength / subnetMask attributes
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r-- | nixos/doc/manual/configuration/ipv4-config.xml | 5 |
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 e2c51518349dc..053501b1736d2 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: |