Barra de espaço
Barra de espaço

This tutorial presents a detailed procedure showing how to configure a static IPv6 address on a computer running Ubuntu linux.

YOUTUBE

In our channel you can view the video of this tutorial.



Before starting the configuration we must ensure that the Linux system recognized a network card in your system.

# lspci | grep –i ethernet


The lspci command list PCI cards connected to the system and the grep command is filtering only for ethernet network cards.

In our example, a network card was found.

ubuntu configurar rede ip 1

Edit the network interface configuration file located in the directory /etc/network.

# vi /etc/network/interfaces

auto lo eth0

iface lo inet loopback
iface eth0 inet6 static

address 2002:1:1:1:0:0:0:2
netmask 64
gateway 2002:1:1:1:0:0:0:1



When you finish editing the configuration file run the following command to stop the network interface eth0 of Ubuntu.

# ifdown eth0


Use the following command to start the ETH0 network interface.

# ifup eth0


Verify if the interface is up and running with the new IP address configuration using the ifconfig command.

# ifconfig

 

Test the connectivity to the internal network through the ping command to your gateway address.

# ping6 2002:1:1:1:0:0:0:1

 

Restart the computer to make sure everything will work correctly at boot time.

 

CONCLUSION

This tutorial introduced the static IPv6 address configuration process.