Diagnose Network Connectivity Using Linux CLI Tools
📖 Scenario: You are a system administrator who needs to check if a computer can connect to the internet and other devices on the network. You will use simple Linux command-line tools to diagnose network connectivity step-by-step.
🎯 Goal: Build a small script that uses Linux network tools to check if the computer can reach a website and a local device, and then display the results.
📋 What You'll Learn
Create a variable with the website URL to test connectivity
Create a variable with the local device IP address to test local network connectivity
Use the
ping command to check connectivity to the websiteUse the
ping command to check connectivity to the local devicePrint the results of both connectivity tests
💡 Why This Matters
🌍 Real World
Network administrators often need to quickly check if a server or device is reachable to diagnose connectivity problems.
💼 Career
Knowing how to automate network checks with scripts saves time and helps maintain reliable network operations.
Progress0 / 4 steps