Go to the Nube Cloud console and find your server. Click Manage to go to the VPS information page.
For US servers, set the location to SJC.
Find the IPv6 information under the Network section, including the IPv6 address, gateway, and DNS servers.
> Note: This is the VNC password you just copied, not your Nube Cloud account password.
3. Enter your username (usually root) and press Enter. Use the paste tool to enter the root user's password and click OK.
Enter your login username, then press Enter.
Click the paste tool, enter your SSH password, and click OK.
The OS used is the default installation from Nube Cloud.
bash sudo vim /etc/netplan/50-cloud-init.yaml
2. Modify the configuration file to add the IPv6 address.
- (Ubuntu 18/20) Under eth0, add the addresses and gateway6 sections. addresses is your IPv6 address, and gateway6 is the gateway address.
> Note: Append "/64" to the IPv6 address under addresses.
yaml addresses: - /64 gateway6:
- (Ubuntu 22) Under
eth0, add the addresses and routes sections. addresses is your IPv6 address, routes to is ::/0, and via is the gateway address.
> Note: Append "/64" to the IPv6 address under addresses.
yaml addresses: - /64 routes: - to: ::/0 via:
3. Apply the configuration changes.
> If an error occurs, review the previous steps and the error message.
bash sudo netplan apply
bash ip -6 addr
If the IPv6 address you just added appears, the configuration was successful.
bash sudo vi /etc/network/interfaces
2. Modify the configuration file to add the IPv6 address.
address is the IPv6 address, netmask is 64, and gateway is the gateway address.
iface eth0 inet6 static address netmask 64 gateway
> Note: The network interface name must be correct.
>
>
bash sudo systemctl restart networking
bash ip -6 addr
bash ip addr
2. Open the network configuration file.
bash sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
> Note: eth0 here should be the network interface you found in the previous step.
Add the following lines:
bash IPV6INIT=yes IPV6ADDR=/64 IPV6_DEFAULTGW=
4. Restart the networking service.
- CentOS 7
bash sudo systemctl restart network
- CentOS 8/9
bash sudo systemctl restart NetworkManager
bash ip -6 addr
bash ip addr
2. Open the network configuration file.
bash sudo vi /etc/sysconfig/network-scripts/ifcfg- # e.g., sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
> Note: The interface name (e.g., eth0) should match what you found in the previous step.
Add the following lines:
bash IPV6INIT=yes IPV6ADDR=/64 IPV6_DEFAULTGW=
4. Restart the networking service.
bash sudo systemctl restart NetworkManager
bash ip -6 addr
bash sudo vi /etc/resolv.conf
nameserver 1.1.1.1 nameserver 8.8.8.8 nameserver 9.9.9.9 nameserver 2001:4860:4860::8844 nameserver 2001:4860:4860::8888
bash curl -6 ip.sb