Network Configuration and Interface Management
Overview
This lab focuses on essential skills for managing network interfaces and configurations in a Linux-based environment. You will explore how to use powerful tools like ip, ifconfig, iwconfig, and nmcli to perform common networking tasks, such as listing active network interfaces, configuring static IPs, managing wireless connections, setting static routes, and verifying overall network configurations.
Inside this lab
You will gain hands-on experience with:
- Listing Network Interfaces with
ip: Discover interface configurations and status details. - Configuring Static IP Addresses: Assign static IPs using the legacy
ifconfig. - Managing Wireless Networks with
iwconfig: Customize and connect to Wi-Fi networks. - Setting Static Routes with
ip: Define specific routes for network traffic. - Leveraging
nmcli: Verify network settings, manage network devices, and connect to Wi-Fi networks via the NetworkManager CLI tool.
This lab offers practical exercises to familiarize yourself with Linux networking commands, making it ideal for DevOps professionals and system administrators.
What you’ll learn
- Network Interface Management:
- Use
ipto see active interfaces and their state. - Understand interface-level data with
ip link show.
- Use
- Static IP Address Configuration:
- Assign an IP using
ifconfigandip. - Learn to reactivate interfaces and troubleshoot connectivity issues.
- Assign an IP using
- Wireless Network Management:
- List, configure, and activate wireless connections using
iwconfigandnmcli.
- List, configure, and activate wireless connections using
- Routing Table Management:
- Add and delete static routes with the
ip routecommand. - Use CIDR notation to define precise network paths.
- Add and delete static routes with the
- Network Verification with
nmcli:- Check device and connection statuses.
- Scan and connect to Wi-Fi networks efficiently.
This lab empowers you to handle both legacy and modern networking tools, ensuring you’re prepared for various Linux networking scenarios.
Bash
Ubuntu