How To Enable IPv6 In Your CentOS Discovery Instance
IPv6 is already activated on our network but you must activate it inside your Discovery instance. This guide will show you how to enable IPv6 in your CentOS instance. The setup is quick and just requires a slight edit to the networking. In some cases, you may also need to provide a default route to the IPv6 gateway. But in most cases, you can skip Step 1 and go straight to Step 2.
Step 1 – Configure CentOS IPv6 Networking
The first step of this process is to ensure your instance has the correct IPv6 assigned to it. We configure your networking on each instance boot using Cloud-init. Most of the information should already be configured in your instance.
CentOS / Alma – IPv6 Networking
In a CentOS instance first open up the /etc/sysconfig/network-scripts/ifcfg-eth0 file and correct it so it reflects the below code. It’s important all IPv6 have a trailing slash and subnet /128.
- IPV6ADDR= Your IPv6 Address
- IPV6_DEFAULTGW= Your IPv6 Gateway. This can be obtained from the IP Information section in your client area.
- IPV6ADDR_SECONDARIES= Your secondary IPv6 addresses
IPV6ADDR=2001:41d0:xXx:xXx::87f2/120
IPV6_DEFAULTGW=2001:xXx:xXx:2cff:ff:ff:ff:ff
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_FORCE_ACCEPT_RA=no
IPV6ADDR_SECONDARIES="2001:41d0:xXx:xXx::44aa/128 2001:41d0:xXx:xXx::44bb/128"
Step 2 – Set A Route To The IPv6 Gateway
Next, you need to tell your NVMe VPS where the IPv6 gateway is. So, we do this by telling your instance the gateway to the outside world. Your IPv6 gateway address is listed in your client area under the IP Information section.
CentOS / Alma Instances
Create the file /etc/sysconfig/network-scripts-route6-eth0 and enter the below code ensuing you use your IPv6 gateway. Next, save and close the file. Then, reboot your instance and your IPv6 addresses will now resolve.
2001:41d0:xXx:xXxx:ff:ff:ff:ff:ff dev eth0
default via 2001:41d0:xXx:xXxx:ff:ff:ff:ff:ff
IPv6 will now be resolving inside your instance. If it is not, please contact the support team.
How was this article? How To Enable IPv6 In Your CentOS Discovery Instance
You might also like
More from Instance Management
How To Enable IPv6 Netplan Ubuntu Instances
On the Discovery network, we automatically configure IPv4 but sometimes to enable IPv6, Netplan needs some tweaks. In Ubuntu NVMe …
How To Configure An Internal MySQL Database Server
How To Configure An Internal MySQL Database Server High-value assets like database servers are always a target for hackers. Typically, these …