SupportConsole
Tickets
Navigation

Getting Started
Registration and Account SetupFirst Order: From Registration to Power-OnConsole Navigation and Common Entry PointsGetting Started: Terms and Concepts
Cloud Server Operations
Connection and Login: SSH Key, Password, VNC / noVNCUnable to Connect and Self-Service Outage TroubleshootingPower On, Shutdown, and RestartSystem Reinstallation, Public Images, and Custom ISOSnapshots and BackupsDisk Configuration and ResizingBandwidth, Traffic, and PortsIP AddressesMigration, Cloning, and Changing Data CentersCreation, Deployment, and DeliverySuspension, Deletion, and RecoveryPerformance AnomaliesCommon Console Error ReferenceUsage Limits and Common QuestionsHow to Manually Configure IPv6 in Nube CloudHow to Access Nube Cloud Virtual Machines Using SSH KeysQuotas, Credit Line, and Balance
Bare Metal Servers
Bare Metal Server (Dedicated Server / Bare Metal) RentalBare Metal Delivery and Rack InstallationBare Metal Customization and ColocationBare Metal Cancellation, Reclamation, and RefundsPioneer Program
Network, IP & Routes
Network Route Types: International Lite, International Optimized, and China OptimizedSelf-Service Network Troubleshooting: Unreachable, Packet Loss, Latency, and JitterHome Broadband IPs and Residential Broadband: Activation and TrialIP Prefix Leasing, Announcements, ASN, and RPKI RequestsChanging Network Lines, Replacing IPs, and Adjusting RoutesPort Blocking and GFW Blocking: IP Replacement, Port 25, and UnblockingTest IPs, Looking Glass, and Paid TestingCommon Network IssuesHong Kong Anti-DDoS China-Optimized Service Quota GuideWhat's the Difference Between International Lite and International Optimized?DDoS Protection and China Optimized Quota
DDoS
CDN Activation, Configuration, and MigrationCDN Plans, Renewal, and Traffic Rules
AI API
Model List, Capabilities, and AvailabilityError-Code Troubleshooting: 400, 403, 429, 503, and Thinking BlocksRate Limits, Concurrency, and Quota RulesBilling and Usage: Token Accounting, Caching, and Billing DisputesAI API Integration GuideModel Technical Notes: Deployment, Quantization, and Capabilities
Support/
Service & Products

How to Manually Configure IPv6 in Nube Cloud

About the Article

1. This tutorial is sponsored by Nube Cloud

2. Scope

  1.  Current Nube Cloud hosts.
  2.  A VPS that had IPv6 but now only has an IPv4 address after reinstallation.
  3.  Other cases where a server has an IPv6 address but cannot access the internet via IPv6.

I. How to Check IPv6 Information

Go to the Nube Cloud console and find your server. Click Manage to go to the VPS information page. image

For US servers, set the location to SJC.

image Find the IPv6 information under the Network section, including the IPv6 address, gateway, and DNS servers.

image

II. Connecting to the Server

1. Connect using VNC

  1.  Under Access, find VNC. Copy the password and click the button to enter the VNC console. image    > Note: Your browser might block pop-ups. Check for any blocked pop-up notifications. image
  2.  Enter the VNC access password and click OK.

   > Note: This is the VNC password you just copied, not your Nube Cloud account password. image 3.  Enter your username (usually root) and press Enter. Use the paste tool to enter the root user's password and click OK. image    Enter your login username, then press Enter. image     Click the paste tool, enter your SSH password, and click OK.

  1.  Wait a moment, then press Enter in the VNC window. When you see a message like the one below, you have successfully connected. image

2. Connect using WebSSH

  1.  Under Access, find SSH and click the button to enter WebSSH. image
  2.  When you see a message like the one below, you have successfully connected. image

III. Configuring the IPv6 Address

The OS used is the default installation from Nube Cloud.

1. Ubuntu 18/20/22

  1.  Open the network configuration file:

   bash    sudo vim /etc/netplan/50-cloud-init.yaml     image 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:         image    -   (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:         image 3.  Apply the configuration changes.

   > If an error occurs, review the previous steps and the error message.

   bash    sudo netplan apply    

  1.  Check if the IPv6 address was added successfully.

   bash    ip -6 addr    

   If the IPv6 address you just added appears, the configuration was successful. image

2. Debian 10/11/12

  1.  Open the network configuration file.

   bash    sudo vi /etc/network/interfaces     image 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     image    > Note: The network interface name must be correct.    >image    >

  1.  Restart the networking service.

   bash    sudo systemctl restart networking    

  1.  Check if the IPv6 address was added successfully.

   bash    ip -6 addr     image

3. CentOS 7/8/9

  1.  Check the network interface.

   bash    ip addr     image 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.

  1.  Modify the network configuration file.

   Add the following lines:

   bash    IPV6INIT=yes    IPV6ADDR=/64    IPV6_DEFAULTGW=     image 4.  Restart the networking service.

   - CentOS 7

       bash        sudo systemctl restart network        

   - CentOS 8/9

       bash        sudo systemctl restart NetworkManager        

  1.  Check if the IPv6 address was added successfully.

   bash    ip -6 addr     image

4. Rocky Linux 8/9

  1.  Check the network interface.

   bash    ip addr     image 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.

  1.  Modify the network configuration file.

   Add the following lines:

   bash    IPV6INIT=yes    IPV6ADDR=/64    IPV6_DEFAULTGW=     image 4.  Restart the networking service.

   bash    sudo systemctl restart NetworkManager    

  1.  Check if the IPv6 address was added successfully.

   bash    ip -6 addr     image

IV. Configuring DNS Servers

  1.  Open the DNS configuration file.

   bash    sudo vi /etc/resolv.conf    

  1.  Modify the DNS configuration.

       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     image

V. How to Test Internet Access via IPv6

1. Using the curl command

  1.  Enter the command below. If it returns the IPv6 address you configured, you can access the internet via IPv6.

   bash    curl -6 ip.sb     image