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
- Run the following command:
sudo ip addr show
- Note the IPv4 and IPv6 addresses in the output.
- Run the following command:
- Determine the MAC Address
- Run the following command:
sudo ip addr show
- Note the MAC address in the output.
- Run the following command:
- Determine the Gateway
- Show the routing table.
sudo ip route show
- Note the gateway in the output.
- Show the routing table.
- Determine the DNS Server
- Show the DNS nameserver:
cat /etc/resolv.conf | grep nameserver
- Note the DNS server in the output.
- Show the DNS nameserver: