Managing Network Interfaces on a Linux Host

Get Started
30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The ip and ifconfig command are an invaluable part of any administrators tool kit. In this lab, you will be tasked with configuring two separate network interfaces. This will include deleting and adding IP addresses, updating the ARP cache, changing the state of network interfaces, and recording statistics for these interfaces.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure the eth1 interface using the ip command
  • Remove the old arp entry for the address and the associated interface
  • Delete the address from the eth1 interface
  • Add as a primary address for eth1 and as a secondary address. Both should have a broadcast address of
  • Ensure that the eth1 network interface is online
  • Add a new entry to the arp table for with the associated MAC address
Configure the eth2 interface using the ifconfig command
  • Delete the address from the eth2 interface
  • Add as the primary address for eth2 with a netmask of and a broadcast address of
  • Ensure that the eth2 interface is online
  • Add an entry to the arp table for
Use the ip command to set the eth2 interface to promiscuous mode and save statistics about the interfaces to a file called network_stats in the /root directory.
  • Set the eth1 interface to promiscuous mode
  • Save network interface statistics to /root/network_stats

Additional Resources

An extra device, eth2, has been added that will handle traffic on the network but must be configured so that it will accept traffic. The eth1 device will be used to communicate on the network and should be

You work as a Linux administrator for a small toy company and have been tasked with configuring some network interfaces to provide temporary communication on two different subnets. The first interface, eth1, has replaced a non-functioning interface, and, eth2 has been added to provide additional network communication.

For the eth1 interface, using the ip command, you will need to remove the old ARP entry for the previous NIC,, and delete the same ip address associated with the eth1 NIC. Then you will need to add a primary and secondary address for the new NIC, and respectively. Both should have a broadcast address of Then, ensure that the inteface is online and add an entry for with its corresponding MAC address to the ARP table.

For the eth2 interface, using the ifconfig command, you will need to delete the address associated with the interface and add the address with a netmask of and a broadcast address of Next, ensure that the interface is online and add an entry to the ARP table for with the corresponding MAC address for eth2.

Lastly, using the ip command, set eth1 to promiscuous mode and save the network statistics from the ip command to /root/network_stats


  • All tasks should be performed as the root user.
  • All tasks performed will not persist through a reboot
What are Hands-on Labs

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?