Each server hosting (a virtual or dedicated server) is allocated 65535 IPv6 addresses that the customer can allocate and use.
A particular IPv6 address can be found in the customer administration within the detail of the particular service, or you can ask our customer support to provide it to you.
There will be a part of the IP address which is assigned to the specific service, which is represented by zzzz in the above example. The customer can input anything – 1-ffff (ie. 1-65535 in hexadecimal format) after the X.
Examples of the IPv6 addresses which can be set for your server:
If you are using the server to send e-mails, make sure you also set the necessary reverse records for IPv6 addresses.
Interface Settings in Linux
One IPv6 address is already set on a network interface (:1 in the ending) for our pre-installed Linux VPSs.
Use only static configuration, turn off all autoconfiguration protocols and services.
The following command sets an IPv6 address and gateway for the appropriate eth0 interface.
ifconfig eth0 inet6 add 2a02:2b88:2:1::zzzz:1/64 route -A inet6 add default gw 2a02:2b88:2:1::1
Of course, it is necessary to write the interface settings into the configuration files, otherwise the settings will be lost after restarting. Search for a particular procedure in the manual for your distribution.
Configuration in RHEL, CentOS and Fedora
For the permanent setting of IPv6 addresses in these distributions, follow the below procedure:
First, enable IPv6 in the file /etc/sysconfig/network:
Then add the configuration to the configuration file of the particular network interface /etc/sysconfig/network-scripts/ifcfg-XXX:
IPV6INIT=yes IPV6ADDR=IP1/64 IPV6ADDR_SECONDARIES="IP2/64 IP3/64" IPV6_DEFAULTGW=GW
If you are using IPv6, do not forget about necessary security. On Linux, iptables firewall rules work just for IPv4 communication. You must also create rules for IPv6 communication by using ip6tables!
Linking to Domains
If you wsh to direct a domain name to an IPv6 address of your server, add an AAAA DNS record type to the domain – specify the appropriate address into its value.