I've bought a Public Cloud VPS from OVH and trying to set up ipv6.
Also I've found a tutorial on how to set up ipv6 in their documentation. It works until I reboot the VPS.
In this tutorial they want me to update this file /etc/sysconfig/network-scripts/ifcfg-eth0 but inside that file it says "Created by cloud-init on instance boot automatically, do not edit". I've also tried to contact OVH's support, but they responded that they can't help me with that and suggested to ask here.
Can somebody help me with this? I've never worked with cloud-init and don't even know where is a config that generates ifcfg-eth0.
OS: Centos7
Best Answer
In my specific case, my router leases IPv6 addresses to my VMs running in my server (in premisses) via DHCP and so... I don't need to hardcode or generate any IP configuration. I just need to inform a DNS server about the dynamically generated addresses.
The snippet below (from my
cloud-config
script) creates/etc/sysctl.conf
so that it enables IPv6 on a VM running Centos7. It also creates a shell script which updates the current IPv6 address onto FreeDNS every 15mins, requiring the FQDN and a DDNS key which can be obtained when you setup a AAAA record marked as dynamic.