@cryptotaxi247 / infra-1 / commits / df46d29c

* Turn on IPv6 support.

svn path=/configurations/trunk/tud/; revision=27506

Eelco Dolstra committed Jun 20, 2011 at 18:13 UTC df46d29c4d684962060b81b52d073d0b1cdbbdfe
1 file changed +21
stan.nix
+21
@@ -23,4 +23,25 @@
23 virtualisation.libvirtd.enable = true;
24
25 virtualisation.nova.enableSingleNode = true;
26 +
27 + virtualisation.nova.extraConfig =
28 + ''
29 + --network_manager=nova.network.manager.FlatDHCPManager
30 + --flat_network_dhcp_start=192.168.80.2
31 + --fixed_range=192.168.80.0/24
32 + --use_ipv6
33 + '';
34 +
35 + networking.localCommands =
36 + ''
37 + # Enable IPv6 forwarding. Nova/radvd requires this.
38 + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
39 +
40 + # Urgh. The Linux kernel disables processing of router
41 + # advertisements if forwarding is enabled, so we have to
42 + # configure manually. Apparently in newer kernels, we can set
43 + # /proc/sys/net/ipv6/conf/all/accept_ra to 2 instead.
44 + ip -6 addr add 2001:610:685:1:222:19ff:fe55:bf2e/64 dev veth0
45 + ip -6 route add default via fe80::219:d1ff:fe19:28bf dev veth0
46 + '';
47 }