This guide describes how to configure a network interface to use the IPV6 protocol. In this example I have virtual machine running on CENOS7 in VMWare Workstation and connected to a router that supports IPV6.
Incase you didn’t know IPV6 is the protocol that is slated to replace IPV4 across the Internet. The address space for IPV4 has been depleted however more and more devices need IP addresses to connect to the Internet. The need to make the move has been slowed with the use of network address translation (NAT) however this is not a permanent solution. IPV6 uses 128bit for addressing compared to 32bit fir IPV6 and provides a long term solution for the network address problem.
This is also an attempts to address the RHCE7 objective:
- Configure IPv6 addresses and perform basic IPv6 troubleshooting
This guide assumes that you have a basic understanding of how IPv6 addressing works. Its similar to IPv4 in some ways however there are enough differences that one needs to understand them ahead of taking the RHCE7 exam.
Below is the contents of the configuration file for my network interface card (NIC). As you will see for this test I have removed all of the IPV4 configuration information to ensure that the NIC is functionling on IPv6 alone. The file location is:
[test@localhost network-scripts]$ cat ifcfg-ens33
Explanation for each line line in the file
Ensures the interface will activate on system boot or when the network service is reset
Defines that the interface uses Ethernet
Initializes the interface for IPV6
This is the IPV6 address for this interface and defines that it has a 64bit prefix.
This is the default gateway for the network. In this case this is the IPv6 address for my wireless router which is the default gateway.
This is the IPv6 address for my ISPs DNS server.
After configuring the adapter file reboot your system, or reset the network services with the following command.
systemctl restart network
The screen show below shows my NIC configuration and a test ping to Google’s IPV6 address.
This confirms that the IPv6 address are valid and default gateway are valid, and that the DNS is being resolved correctly.
As always please share your thoughts on this topic, especially if you know another way of configuring IPv6 addresses.