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 192.168.1.11 address and the associated interface
  • Delete the 192.168.1.11/24 address from the eth1 interface
  • Add 10.0.2.10 as a primary address for eth1 and 10.0.2.20 as a secondary address. Both should have a broadcast address of 10.0.2.255.
  • Ensure that the eth1 network interface is online
  • Add a new entry to the arp table for 10.0.2.10 with the associated MAC address
Configure the eth2 interface using the ifconfig command
  • Delete the 10.0.0.10/24 address from the eth2 interface
  • Add 192.169.1.20 as the primary address for eth2 with a netmask of 255.255.255.0 and a broadcast address of 192.168.1.255
  • Ensure that the eth2 interface is online
  • Add an entry to the arp table for 192.169.1.20
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 192.168.1.0 network but must be configured so that it will accept traffic. The eth1 device will be used to communicate on the 10.0.2.0 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, 192.168.1.11, 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, 10.0.2.10/24 and 10.0.2.20/24 respectively. Both should have a broadcast address of 10.0.2.255. Then, ensure that the inteface is online and add an entry for 10.0.2.10 with its corresponding MAC address to the ARP table.

For the eth2 interface, using the ifconfig command, you will need to delete the 10.0.0.10/24 address associated with the interface and add the address 192.168.1.20 with a netmask of 255.255.255.0 and a broadcast address of 192.168.1.255. Next, ensure that the interface is online and add an entry to the ARP table for 192.168.1.20 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

Note:

  • 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.


$2,495.00

Checkout
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?