Configuring IPv6 Address for Your VPS via SSH


Introduction: Enabling IPv6 on your VPS can enhance your server's connectivity and expand its reach in the modern internet landscape. In this guide, we will walk you through the steps to configure your VPS's IPv6 address via SSH.

Prerequisites: Before you begin, ensure you have:

  • Access to your VPS server via SSH.
  • Basic familiarity with using the command line.

Step 1: Accessing the Server via SSH: Connect to your VPS server using SSH by opening your terminal and entering the following command or via putty:

ssh username@your_server_ip

Replace username with your actual username and your_server_ip with your server's IPv4 address.

Step 2: Editing the Configuration File: To configure IPv6, you'll need to edit the network configuration file. Enter the following command to open the file using the nano text editor:

sudo nano /etc/netplan/50-cloud-init.yaml

Step 3: Editing the Configuration: Inside the opened configuration file, locate the section labeled ethernets and under it, find eth0 (your network interface).

network: version: 2 ethernets: eth0: addresses: - 2001:db8:1234::1/64 dhcp4: true gateway6: fe80::1 match: macaddress: your-original-macaddress nameservers: addresses: - 2a01:4ff:ff00::add:2 - 2a01:4ff:ff00::add:1 set-name: eth0

Replace 2001:db8:1234::1/64 with your IPv6 address, and your-original-macaddress with your network interface's MAC address.

Step 4: Saving and Applying Changes: After making the necessary changes, save the file by pressing Ctrl + O, then press Enter. Exit the nano editor by pressing Ctrl + X.

Apply the changes to the network configuration using the following command:

sudo netplan apply

Note: IPv6 Currently only available on VPS DE + VPS ML packages.

Conclusion: Configuring your VPS's IPv6 address enhances its connectivity and readiness for the evolving internet landscape. By following these steps, you've successfully set up and assigned your IPv6 address using SSH. Remember that accurate configuration is crucial for optimal performance and connectivity.


YottaSrc Hosting Services

To get free hosting trial, please click here

To get discount more than 80%, please click here

To get free reseller trial, please click here

YottaSrc footer

Other Support Topics

why choose us?

Better Pricing, Fast SSD Storage and Real 24/7
Technical Support.

control panel icon

Managing Your Site Through CPanel With The Latest Version

security icon

99.8% Uptime Guarantee.
So Focus On Your Work!

support icon
24/7/365 Support

Day or night, rain or shine,
our team is here for you!

cloud backup icon
Daily Backup

Daily & Weekly Backup.
Your Files Are Safe!