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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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
- 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.