Sunday, 7 January 2018

How to assign IPv6 on Ubuntu server

IPv6 was developed to counter the long-anticipated problem of IPv4 exhaustion. IPv6 is not only intended to replace IPv4 but also boasts of certain characteristics which are superior to IPv4 address like more efficient routing, directed data flows, simplified network configuration, security and much more.
By following this brief article to the end, you will be able to assign IPv6 address on your server. Please follow these simple steps to assign IPv6 address on your server.

Step 1: Edit sysctl.conf file

Login into the server as root user and edit the sysctl.conf file. Enter the file in editing mode, we will be using vim editor for this article. You can use any file editor that you want.
# vim /etc/sysctl.conf
Add the following lines at the end of the file.
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.all.disable_ipv6 = 0
Then save and exit the file.

Step 2: Edit interfaces file

The last file we need to edit is the interfaces file under the path  /etc/network/
# vim /etc/network/interfaces
Append the following lines to the file,
iface eth0 inet6 static
pre-up modprobe ipv6
address IPv6-IP-Address
netmask 64
gateway IPv6-IP-Gateway-Address
Then save and exit the file. Make sure that you replace IPv6-IP-Address and IPv6-IP-Gateway-Address with the IPv6 details provided to you.

Step 3: Restart network service

The last step in enabling the IPv6 address on your server is to restart the networking service in order for the changes to come into effect.
# service networking restart

No comments:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...