Configure IPv4 and IPv6 Addressing for Linux
This Configure IPv4 and IPv6 Addressing for Linux IT Pro Challenge helps learners understand the difference between IPv4 and IPv6 addressing, as well as how to configure and test both IPv4 and IPv6 settings on a Linux interface.
After taking this Configure IPv4 and IPv6 Addressing for Linux IT Pro Challenge lab, learners will understand how to configure IPv4 and IPv6 addresses on Linux machines, so they properly communicate on the network, develop the ability to use various Linux commands (like ip, ifconfig, etc.), and how to modify and manipulate files under Linux.
The skills acquired in this lab are useful for anyone pursuing careers in:
- All-Source Analyst/Collection Manager
- Target Network Analyst
- Threat/Warning Analyst
- Cyber Security Engineer
- Network Administrator/Engineer
- Security Operations Center (SOC) Analyst
For this virtual lab, the scenario is that you are the company’s system administrator. Your company uses virtual machines in its data center, and you need to configure Linux to properly communicate on the network. To accomplish your task, first, you will configure IPv4 settings on the Linux interface, and then you’ll configure IPv6 settings. You will use ping to test both IPv4 and IPv6 on an Ubuntu Linux virtual machine.
Internet Protocol version 4 (IPv4) is the most used Internet Protocol (IP). Any technology that connects to the Internet needs an IP address. IPv4 allows for just over 4 billion addresses, meaning that at some point we are going to run out of IPv4 addresses, and that’s where IPv6 comes in.
Internet Protocol version 6 (IPv6) (also referred to as IPng (Internet Protocol next generation)) is the latest version of the Internet Protocol (IP) that is meant to replace IPv4. IPv6 is designed to allow the number of connected hosts and the total amount of data traffic to grow steadily. It was created because there was concern that the demand for IP addresses would exceed the supply.
View Linux network interfaces
To start, you will view the Linux network interfaces by using the ip and ifconfig commands. The ip command shows you the existing network interfaces, and ifconfig allows you to confirm that both network interfaces are running.
Configure IPv4 addressing
In this part of the lab, you will learn how to configure IPv4 addressing, which is a 32-bit number (address) containing two parts: the network prefix and the host number. The IPv4 address is written in decimal form, separated by periods. An example of an IPv4 address is: 18.104.22.168.
In an IPv4 address, each host has its own unique address, but all hosts that are in the same network share the same network address.
Configure IPv6 addressing
In the final part of the virtual lab, you will learn how to configure IPv6 addressing, which is a 128-bit hexadecimal number divided into eight 16-bit groups, separated by colons. An example of an IPv6 address is: 2003:0db8:85c3:0000:1111:8a2e:0380:7994.
After you complete this lab, you will understand the difference between IPv4 and IPv6 addressing, how to view Linux network interfaces, how to configure persistent IPv4 and IPv6 settings in Linux, and how to use ping to test your IPv4/IPv6 configuration. Through this process, you will also understand how to use a text editor like vi or nano.