USD ($)
$
United States Dollar
Euro Member Countries
India Rupee

Basic Network Troubleshooting

Lesson 31/49 | Study Time: 15 Min

Network issues can disrupt connectivity and communication, impacting productivity and system operations. Basic network troubleshooting involves systematic steps and tools to identify and resolve common network problems effectively.

Linux provides several powerful command-line utilities that help diagnose physical connections, IP addressing, routing, and service availability, enabling administrators and users to restore network functionality promptly.

Network Troubleshooting Steps

Below is a structured approach to diagnosing and resolving network problems. Each step builds on the previous one to isolate and fix connectivity failures.

Step 1: Verify Physical and Link Layer

1. Check cables and devices: Ensure all cables, switches, routers, and network cards are properly connected and powered.

2. Check interface status: Use commands to verify interfaces are active and operational.

text
ip link show


Look for “UP” status; if an interface is “DOWN,” bring it up:

text
sudo ip link set eth0 up


3. Check negotiated link speed and duplex:

text
ethtool eth0

Confirm expected speed and duplex to avoid performance issues.

Step 2: Confirm IP Address Configuration

1. View assigned IP addresses and subnet masks:

text
ip addr show


2. Verify static or dynamic (DHCP) assignment as expected.

3. Check for IP conflicts by ensuring no duplicates on the network.

Step 3: Test Connectivity with Ping

1. Ping local gateway to confirm local network reachability:

text
ping -c 4 192.168.1.1


2. Ping external IP (e.g., Google DNS) to check internet access:

text
ping -c 4 8.8.8.8


3. If ping by IP works but not by domain name, suspect DNS issues.

Step 4: DNS Resolution Test

1. Use nslookup or dig to verify DNS resolving:

text
nslookup google.com
dig google.com


2. If DNS queries fail, check /etc/resolv.conf for correct DNS server entries.

Step 5: Routing Table and Default Gateway

1. Display routing table:

text
ip route show


2. Verify existence of default gateway route, e.g.:

text
default via 192.168.1.1 dev eth0


3. Add or fix gateway if missing:

text
sudo ip route add default via 192.168.1.1

Step 6: Check for Listening Services and Ports

1. Use ss or netstat to verify required services and ports are active:

text
ss -tunlp
netstat -tuln


2. Confirm no port conflicts or firewall rules blocking traffic.

Step 7: Trace Network Path

Use traceroute to identify bottlenecks or failures along route:

text
traceroute google.com

Step 8: Advanced Tools and Logs

1. Review system logs for network-related errors:

text
journalctl -u NetworkManager
tail /var/log/syslog


2. Analyze ARP cache to verify MAC address mappings:

text
arp -n
Samuel Wilson

Samuel Wilson

Product Designer
Profile

Class Sessions

1- What is Linux and Operating System Concepts 2- Linux History and Evolution 3- Linux Distributions and Their Purposes 4- Open Source Software and Licensing 5- Graphical User Interface (GUI) and Desktop Environments 6- Terminal Access and Command-Line Fundamentals 7- Getting Help and Command Documentation 8- File System Hierarchy and Directory Structure 9- Navigating Directories and Listing Contents 10- Creating, Copying, and Moving Files and Directories 11- Deleting Files and Directories 12- Symbolic and Hard Links 13- Understanding File Permissions Model 14- Modifying Permissions and Ownership 15- User and Group Management 16- Sudo and Privilege Escalation 17- Text Searching and Pattern Matching 18- Text Processing and Stream Editing 19- Compressing and Archiving Files 20- Text Editing and File Creation 21- Package Management Systems Overview 22- Installing and Updating Software with APT 23- Installing and Updating Software with YUM/DNF 24- Managing Software from Non-Repository Sources 25- Understanding Processes and Process Management 26- Viewing Running Processes 27- Process Control and Termination 28- Task Scheduling with Cron 29- Networking Concepts and IP Addressing 30- Viewing and Configuring Network Interfaces 31- Basic Network Troubleshooting 32- Shell Script Basics 33- Variables and Data Types 34- Conditional Logic in Scripts 35- Loops and Iteration 36- Functions and Code Reuse 37- Input/Output and User Interaction 38- System Authentication and Access Control 39- File System Security 40- Software Updates and Patching 41- Basic Firewall Concepts 42- System Information and Monitoring 43- Service and Daemon Management 44- System Boot Process and Runlevels 45- System Backup and Disaster Recovery 46- Comprehensive File System Management 47- System Automation Workflows 48- Multi-Concept Troubleshooting Scenarios 49- Continued Learning Pathways

Sales Campaign

Sales Campaign

We have a sales campaign on our promoted courses and products. You can purchase 1 products at a discounted price up to 15% discount.