Configuring Routing on a Linux Host

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Network routing allows communication between computers over a network and determines what interfaces will send and receive packets. In this lab, you will be tasked with configuring routing so that communication is allowed between different subnets and denied to others.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable Access from Server 2 and Server 3 to the eth1 and eth2 Interfaces on Server 1
  • On server 2, create a static route to enable access for the 10.0.3.0 network on the 10.0.2.20 interface on Server 1.

  • On server 3, create a static route to enable access for the 10.0.2.0 network on the 10.0.2.20 interface on Server 1.

Enable Access between Server 2 and Server 3
  • On Server 1, create a static route for the 10.0.3.0 network on the 10.0.3.20 interface.
  • On Server 1, create a static route for the 10.0.2.0 network on the 10.0.2.20 interface.
Prohibit Access to the 10.0.1.0 Network on Server 3
  • On Server 3, remove the static route for the 10.0.1.0 network on the 10.0.3.20 interface.
  • On Server 3, prohibit access to the 10.0.1.0 network.

Additional Resources

You work as a Linux administrator for a small company and are in charge of network communication between the servers in your data center. You have been tasked with enabling communication between three different servers on three different subnets. Server 1 has two additional network interfaces, 10.0.2.20 and 10.0.3.20, in order to provide communication on the 10.0.2.0 and 10.0.3.0 networks respectively.

First, you will need add static routes to allow access for Server 1 and Server 2 to the eth1 and eth2 interfaces on Server 1. Next, you will need to add static routes on Server 1 to allow communication between Server 2 and Server 3. Finally, you will need to remove the static route for traffic on the 10.0.1.0 network on Server 3 and add route to prohibit any future communications on the 10.0.1.10 network.

Note:

  • All tasks should be performed as the root user.
  • All tasks performed will not persist through a reboot.
  • IP forwarding is enabled on Server 1 to allow packets to be forwarded between Servers 2 and 3.

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?