Adding an IPv6 Address on your VPS
- Login to https://crownpanel.com --> Select the VPS you wish to setup IPv6 for by clicking on "Manage" and then click on the "Manage Network" tab
- Here you will find the following values, IPv6_RANGE, GATEWAY and NETMASK
- eg:
- Here for example, the range is "2a0a:51c0:0:1f::/64" while the first usable IPv6_ADDRESS would be 2a0a:51c0:0:1f::2 and NETMASK is 64.
CentOS
Edit the file eth0 (or similar) config file,
nano /etc/sysconfig/network-scripts/ifcfg-eth0
If your network interface isn't eth0, you can find it by checking,
ifconfig
and then editing that config, replacing NETWORK_INTERFACE with the correct network interface,
nano /etc/sysconfig/network-scripts/ifcfg-NETWORK_INTERFACE
And then add the following to the end of the file,
IPV6INIT=yes
IPV6ADDR="IPv6_ADDRESS/NETMASK"
IPV6_AUTOCONF=yes
Information for the IPv6_RANGE/NETMASK can be found from CrownPanel.
Save the file and then,
systemctl restart network
Ubuntu
Edit the /etc/network/interfaces file,
nano /etc/network/interfaces
Append configuration as follows:
iface eth0 inet6 static
address IPv6_ADDRESS
netmask NETMASK
gateway GATEWAY
Save and close the file. You can reboot the server or restart networking (For Ubuntu versions older than 16.04) service:
/etc/init.d/networking restart
If you are using systemd (Ubuntu Linux 16.04 LTS server and above), enter:
systemctl restart networking
Debian
Open /etc/network/interfaces file,
nano /etc/network/interfaces
Append configuration as follows:
iface eth0 inet6 static
pre-up modprobe ipv6
address IPv6_ADDRESS
netmask NETMASK
gateway GATEWAY
Save and close the file. Restart the networking:
/etc/init.d/networking restart
Testing IPv6 Connectivity
ping6 ipv6.google.com
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS