- Lab
- A Cloud Guru
Configuring Network Interfaces on Linux
Configuring network interfaces is an important skill for Linux administrators, both professionally and personally. In this hands-on lab, you'll configure two network interfaces: the first using the older network-scripts method and the second with the more modern Network Manager method.
Path Info
Table of Contents
-
Challenge
Configure the eth1 Interface Using Network Scripts on Server 1
On Server 1, configure the
eth1
interface usingnetwork-scripts
:- In
/etc/sysconfig/network-scripts
, create a copy ofifcfg-eth0
calledifcfg-eth1
. - Update
ifcfg-eth1
to have the following specifications:- Set the boot protocol to
none
. - Set the device to
eth1
. - Match the MAC address to the one assigned to the
eth1
device. - Set the IP address to
10.0.2.20
. - Set the netmask to
255.255.255.0
. - Set the broadcast address to
10.0.2.255
.
- Set the boot protocol to
- Restart the network service.
- Ensure the interface is up and running
- In
-
Challenge
Configure the eth1 Interface Using nmcli on Server 2
On Server 2, configure the
eth1
interface usingnmcli
:- Ensure that network manager is started and enabled
- Configure the
eth1
connection usingnmcli
with the following specifications:- Set the connection name to
System eth1
. - Set the interface name to
eth1
. - Set the IP address to
10.0.3.20
. - Set the netmask to
255.255.255.0
.
- Set the connection name to
- Ensure that the
eth1
interface is up and running.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.