@cryptotaxi247 / infra-1 / commits / ac6aa2df

* Make our 192.168 subnet bigger so that dnsmasq has more IPv4 addresses to give to our gazillion VMs.

* Make our 192.168 subnet bigger so that dnsmasq has more IPv4 addresses to give to our gazillion VMs. svn path=/configurations/trunk/tud/; revision=26506

Eelco Dolstra committed Mar 25, 2011 at 10:23 UTC ac6aa2df8a71b5affe788e04a54c6687d25284b2
1 file changed +3 -3
cartman.nix
+3 -3
@@ -75,6 +75,7 @@ rec {
75 }
76 { name = "eth0";
77 ipAddress = (findSingle (m: m.hostName == "cartman") {} {} machines).ipAddress;
78 + subnetMask = "22";
79 }
80 ];
81
@@ -91,7 +92,7 @@ rec {
92 firewall.allowPing = true;
93
94 nat.enable = true;
94 - nat.internalIPs = "192.168.1.0/24";
95 + nat.internalIPs = "192.168.1.0/22";
96 nat.externalInterface = "eth1";
97 nat.externalIP = myIP;
98
@@ -116,7 +117,6 @@ rec {
117
118 # Create a local network (prefix:1::/64).
119 ip -6 addr add 2001:610:685:1::1/64 dev eth0
119 - ip -6 route add 2001:610:685:1::/64 dev eth0
120 '';
121 };
122
@@ -519,7 +519,7 @@ rec {
519 server=130.161.33.17
520 server=130.161.180.1
521
522 - dhcp-range=192.168.1.150,192.168.1.200
522 + dhcp-range=192.168.1.150,192.168.3.200
523
524 ${flip concatMapStrings machines (m: optionalString (m ? ethernetAddress) ''
525 dhcp-host=${m.ethernetAddress},${m.ipAddress},${m.hostName}