diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-11 14:50:11 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-11 14:50:11 +0000 |
commit | 8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f (patch) | |
tree | ddcd0b8dd6f1798f6d341b91a741a742f7a298ec /lib | |
parent | d6090b9d1e9b28d32bd1013fbbfc5332279e5dd7 (diff) | |
download | nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar.gz nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar.bz2 nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar.lz nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar.xz nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.tar.zst nixlib-8ce36ffb3ac5773ea91c1cc183a13c5a1c7fc58f.zip |
* Use "ip" instead of "ifconfig" for setting up network interfaces,
since the latter is rather deprecated and has been unmaintained since 2001. Note that "ip" doesn't know about classful addressing, so you can no longer get away with not specifying the subnet mask for explicitly configured interfaces. So if you had networking.interfaces = [ { name = "eth0"; ipAddress = "192.168.1.1"; } ]; this should be changed to networking.interfaces = [ { name = "eth0"; ipAddress = "192.168.1.1"; subnetMask = "255.255.255.0"; } ]; otherwise you end up with a subnet mask of 255.255.255.255. svn path=/nixos/trunk/; revision=26279
Diffstat (limited to 'lib')
-rw-r--r-- | lib/build-vms.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/build-vms.nix b/lib/build-vms.nix index 32d0a4811ebd..8d4592b48bd3 100644 --- a/lib/build-vms.nix +++ b/lib/build-vms.nix @@ -51,6 +51,7 @@ rec { lib.flip map interfacesNumbered ({ first, second }: { name = "eth${toString second}"; ipAddress = "192.168.${toString first}.${toString m.second}"; + subnetMask = "255.255.255.0"; } ); in |