Configure an IPv6 Address in Ubuntu server – IPv6 was developed to counter the long-anticipated drawback of IPv4 exhaustion. IPv6 shouldn’t be only meant to interchange IPv4 but additionally boasts of sure traits that are superior to IPv4 address like extra environment-friendly routing, directed data flows, simplified network configuration, safety, and way more.
The IPv6 address on Digital computes nodes from E2E Networks is disabled by default.
By following this brief article to the tip, it is possible for you to assign IPv6 address in your server. Please observe these easy steps to assign IPv6 address in your server.
Step 1: Edit sysctl.conf file
You must need Login before Configure an IPv6 Address into the server as a root person and edit the sysctl.conf file. Enter the file in modifying mode, we shall be utilizing vim editor for this text. You need to use any file editor that you really want.
# vim /etc/sysctl.conf
Add the below codes lines at the end of the file.
net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.all.disable_ipv6 = 0
After that save and exit the file.
Step 2: Edit interfaces file
The final file we have to edit is the interfaces file below the path /etc/network/
# vim /etc/network/interfaces
Append the below lines to the file,
iface eth0 inet6 static pre-up modprobe ipv6 address IPv6-IP-Address netmask 64 gateway IPv6-IP-Gateway-Address
Now file save and exit. 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 final step in enabling the IPv6 address in your server is to restart the networking service to ensure that the changes to come back into impact.