Author: eelco Date: Mon Jun 20 18:13:59 2011 New Revision: 27506 URL: https://svn.nixos.org/websvn/nix/?rev=27506&sc=1
Log: * Turn on IPv6 support. Modified: configurations/trunk/tud/stan.nix Modified: configurations/trunk/tud/stan.nix ============================================================================== --- configurations/trunk/tud/stan.nix Mon Jun 20 18:12:47 2011 (r27505) +++ configurations/trunk/tud/stan.nix Mon Jun 20 18:13:59 2011 (r27506) @@ -23,4 +23,25 @@ virtualisation.libvirtd.enable = true; virtualisation.nova.enableSingleNode = true; + + virtualisation.nova.extraConfig = + '' + --network_manager=nova.network.manager.FlatDHCPManager + --flat_network_dhcp_start=192.168.80.2 + --fixed_range=192.168.80.0/24 + --use_ipv6 + ''; + + networking.localCommands = + '' + # Enable IPv6 forwarding. Nova/radvd requires this. + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + + # Urgh. The Linux kernel disables processing of router + # advertisements if forwarding is enabled, so we have to + # configure manually. Apparently in newer kernels, we can set + # /proc/sys/net/ipv6/conf/all/accept_ra to 2 instead. + ip -6 addr add 2001:610:685:1:222:19ff:fe55:bf2e/64 dev veth0 + ip -6 route add default via fe80::219:d1ff:fe19:28bf dev veth0 + ''; } _______________________________________________ nix-commits mailing list [email protected] http://mail.cs.uu.nl/mailman/listinfo/nix-commits
