+1 (506) 500-5957 sales@monovm.com Get US VPS for 50% OFF!

How to Set-up IPv6 on Ubuntu Linux Server?

Enable IPV6 on ubuntu Linux Server, In this article we will discuss how to set up or change an IPv6 address in a few very simple steps.

Posted: 16 Apr, 19 Updated: 14 Apr, 23 by Susith Nonis 2 Min

How to Configure Public IPV6 to Ubuntu Linux Server

In the previous article we discussed what IPv6 is and what features it comes with. In short, IPv6 was introduced to the world as a precaution to the exhaustion of IPv4 addresses. IPv4 being a 32 bit address, IPv6 has a massive 128 bit address space.

In this article we will show how to setup IPv6 addresses on Ubuntu. Note that these commands are done on Ubuntu 16.04 LTS

In order to go through with this setup you will need to be logged in as the root user. Your terminal will look similar to the one below.

 root acces

If you are not logged in as root user, then in order to login use the following code and type your password.

sudo –i

 Enable IPV6 on ubuntu Linux Server

Now we will need to enable IPv6 configurations and in order to do that we will be working throughout this article with nano editor. You can use any file editor you prefer. 

First, you will have edit the sysctl.conf file, which can be done with the following code:

             ~# nano /etc/sysctl.conf

How to Add Public IPV6 to Ubuntu Linux Server

In the opened file at the bottom add these two lines and exit the editor after saving the changes.

net.ipv6.conf.default.disable_ipv6 = 0

net.ipv6.conf.all.disable_ipv6 = 0

 How to Set-up IPv6 on Ubuntu Linux Server?

Now it’s time to change your IPv6. To do so, write the following code in your terminal.

            nano /etc/network/interfaces

changing interfaces file

Once you are in the editor at the end of the file add the following code.

iface enp0s3 inet6 static

pre-up modprobe ipv6

address Your-IPv6-Address

netmask 64

gateway Your-Ipv6-Gateway-Address

Editing the config file with ipv6 details

Note that these addresses are examples of IPv6 addresses and in those places you will need to provide your desired IPv6 address. Save the chnages to the file and exit the editor.

Now in order these changes to take effect, you wll need to restart your networking service with the following command:

            ~#sudo systemctl restart networking

 

All MonoVM Linux VPS servers will be activated with public IPV6 address also we provide a valid hostname records that you can use easily your IPV6.

Susith Nonis

Susith Nonis

I'm fascinated by the IT world and how the 1's and 0's work. While I venture into the world of Technology, I try to share what I know in the simplest way with you. Not a fan of coffee, a travel addict, and a self-accredited 'master chef'.