How to Configure IPv6

This tutorial is about how to configure IPv6 address in major operating systems.

Step 0. Obtain your IPv6 address

  1. Find your server in "My Products" and click in control panel
  2. Click Network Button
  3. You can now see your IPv6 address and gateway, you may add or delete an IPv6 address.

Step 1#1. Configure your IPv6 address in Debian / Ubuntu

a. Edit /etc/network/interfaces

You may use your favourite text editor to open the file. For example VIM.

vim /etc/network/interfaces

Add the following codes to the end, change the part in red.

Please note that the interface name may be ens3, the actual name is shown in existing lines.

iface eth0 inet6 static

address Your_IPv6_Address

netmask 54

gateway Your_IPv6_Gateway

b. Restart network

systemctl restart network.service

Your IPv6 should be working now.

Step 1#2. Configure your IPv6 address in CentOS / Fedora

a. Edit /etc/sysconfig/network

vim /etc/sysconfig/network

Add the following line to the end:

NETWORKING_IPV6=yes

b. Edit intereface file

vim /etc/sysconfig/network-scripts/ifcfg-eth0

Please note that the interface name may not be eth0, please change it to the actual name.

Add the following lines to the end, please change the red part accordingly:

IPV6INIT=yes
IPV6ADDR=Your_IPv6_Address/54
IPV6_DEFAULTGW=Your_IPv6_Gateway

c. Restart Network

service network restart

Your IPv6 should be working now.

Step 2. Test IPv6 Connection

An easy way is to ping other IPv6 Address.

ping6 ipv6.google.com
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

如何透過ISO安裝自定義作業系統

閣下成功訂購KVM VPS後,即可訪問我們的控制面板。左下角的按鈕用於管理 VPS。下面演示如何透過ISO安裝自定義作業系統。1....

如何使用數據盤

星光網絡提供的KVM VPS硬碟結構如下: /dev/vda – 系統盤— /dev/vda1 – /boot,存放系統啟動相關資料— /dev/vda2 –...

數據盤 - 創建新分區並掛載到 /home

本文將講述如何創建數據盤分區並掛載到指定目錄。 本文要實現的硬碟結構為: /dev/vda – 系統盤— /dev/vda1 – /boot,存放系統啟動相關文件— /dev/vda2 –...

數據盤 - 創建新分區並與 / 融合

本文講述瞭如何使用數據盤的分區擴展”/”的容量。 本文要實現的硬盤結構為: /dev/vda – 系統盤— /dev/vda1 – /boot,存放系統啟動相關文件— /dev/vda2 –...

數據盤 - 將數據盤作爲 SWAP 交換空間

本文講述如何使用數據盤的新分區作為SWAP(交換空間)。 要實現的硬碟結構為: /dev/vda – 系統盤 — /dev/vda1 – /boot,存放系統啟動相關文件 —...