Locating Network Configuration Information from the Command Line

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

Being able to find and understand network configuration information is fundamental to using Linux on a network. In this hands-on lab, we will determine the network configuration for the eth0 interface of the lab host.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Determine the IP Address
  1. Run the following command:
    sudo ip addr show
  2. Note the IPv4 and IPv6 addresses in the output.
Determine the MAC Address
  1. Run the following command:
    sudo ip addr show
  2. Note the MAC address in the output.
Determine the Gateway
  1. Show the routing table.
    sudo ip route show
  2. Note the gateway in the output.
Determine the DNS Server
  1. Show the DNS nameserver:
    cat /etc/resolv.conf | grep nameserver
  2. Note the DNS server in the output.

Additional Resources

You have been provided a public IP for a Linux Academy lab server. You need to determine the following:

  • IP address
  • MAC address
  • Gateway
  • DNS server

Note: Please wait an additional 2-3 minutes before connecting to the server via ssh.

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?