Follow these steps to configure IPV6 addresses on your VPS server. This guide assumes you’re running a Linux-based system:
1. Login into your VPS server: Use the SSH (Secure Shell) command to enter the server.
1. Gain Root Access: Run “sudo su” to get administrative privileges.
1. Modify Network Interfaces: You can modify the interfaces file that handles network settings by running the command “nano /etc/network/interfaces” to open the file in the text editor.
1. Start a New Line: Write the following lines for your IPv6 address configurations:
```
iface eth0 inet6 static
address Your-IPv6-Address
netmask 64
gateway Your-IPv6-Gateway
```
Replace ‘eth0’ with your network interface card id if it’s different, ‘Your-IPv6-Address’ with the actual IPv6 address you were given, and ‘Your-IPv6-Gateway’ with the required gateway.
1. Save and Close: Save this configuration by pressing CTRL+X, typing Y, then hitting Enter to confirm the save location.
1. Restart Network: Restart your network for the changes to take effect. You can use the command “service networking restart”.
Please note that you should always keep a backup of original configuration files before you start editing them. This process also applies to servers running Debian-based systems, such as Ubuntu. For other distributions like CentOS, the filename & structure would differ slightly. And remember, incorrect setting could cause a loss in network connectivity. Always be cautious.