Skip to main content

🌐 Essential Networking Commands for DevOps 🚀

 

🌐 Essential Networking Commands for DevOps 🚀

Networking is a critical skill for DevOps engineers, as it helps in managing cloud environments, troubleshooting connectivity issues, securing servers, and optimizing performance. Here’s a comprehensive list of networking commands categorized for easy understanding.




🌍 Shape Your Future with AI & Infinite Knowledge...!!

🌐 Want to Generate Text-to-Voice, Images & Videos? 👉 http://www.ai.skyinfinitetech.com 📚 Read In-Depth Tech & Self-Improvement Blogs 👉 http://www.skyinfinitetech.com ▶ Watch Life-Changing Videos on YouTube 👉 https://www.youtube.com/@SkyInfinite-Learning 🔥 Transform Your Skills, Business & Productivity – Join Us Today! 🔥



1️⃣ Check Network Configuration & Interfaces

✔️ ifconfig (Deprecated, use ip a) → Show network interfaces & IPs
✔️ ip a → Display all IP addresses assigned to interfaces
✔️ ip r → Show routing table
✔️ ip link show → Display network interfaces
✔️ nmcli device show → Get detailed network device info (for NetworkManager systems)



2️⃣ Test Connectivity & Diagnose Network Issues

✔️ ping <host> → Check connectivity with a remote server
✔️ ping -c 5 <host> → Send 5 ICMP packets and stop
✔️ traceroute <host> → Show the path packets take to a destination
✔️ mtr <host> → Real-time traceroute with packet loss statistics
✔️ curl -I <URL> → Get HTTP headers of a website
✔️ wget <URL> → Download a file from a URL
✔️ nc -zv <host> <port> → Check if a port is open



3️⃣ Monitor Network Traffic & Performance

✔️ netstat -tulnp → Show open ports and listening services
✔️ ss -tulnp → Alternative to netstat for socket statistics
✔️ iftop → Monitor real-time network bandwidth usage
✔️ bmon → Display real-time network traffic graph
✔️ ip -s link → Show network interface statistics
✔️ sar -n DEV 1 5 → Show network stats every 1 second for 5 times
✔️ vnstat -l → Monitor live network traffic
✔️ tcpdump -i eth0 → Capture packets on a specific interface
✔️ tcpdump -c 10 -i eth0 port 80 → Capture first 10 HTTP packets



4️⃣ DNS & Domain Resolution Commands

✔️ nslookup <domain> → Query domain’s IP address
✔️ dig <domain> → Detailed DNS lookup
✔️ dig +short <domain> → Get only the IP of a domain
✔️ host <domain> → Find DNS records of a domain
✔️ whois <domain> → Get domain registration details



5️⃣ Firewall & Security Commands

✔️ iptables -L → List all firewall rules
✔️ iptables -A INPUT -p tcp --dport 22 -j ACCEPT → Allow SSH (port 22)
✔️ ufw status → Check firewall status (Ubuntu-based)
✔️ ufw allow 80 → Allow HTTP traffic
✔️ firewalld --list-all → Show firewall rules (CentOS-based)
✔️ firewalld --add-port=443/tcp --permanent → Allow HTTPS traffic



6️⃣ Network Troubleshooting & Debugging

✔️ arp -a → Display ARP table (MAC-IP mappings)
✔️ ethtool eth0 → Get network interface details
✔️ route -n → Show routing table
✔️ ip route get <IP> → Find which interface will be used to reach an IP
✔️ nc -v <host> <port> → Check if a remote port is open
✔️ tcpdump -i any port 22 → Capture SSH traffic



7️⃣ Remote Access & Secure Connections

✔️ ssh user@host → Connect to a remote server
✔️ ssh -i key.pem user@host → Connect using an SSH key
✔️ scp file.txt user@host:/path/ → Copy a file securely over SSH
✔️ rsync -avz <source> <destination> → Sync files over SSH
✔️ telnet <host> <port> → Test if a service is running on a port



📌 Summary & Next Steps 🚀

✔️ These networking commands will help DevOps engineers manage, monitor, and troubleshoot network-related issues.
✔️ Now, we can deep dive into each topic, starting with Networking Basics & Fundamentals!

📢 Which networking topic should we explore next? IP Addressing, Subnetting, Firewalls, or Network Troubleshooting? 🚀





📚 Top 5 Books That Will Change Your Life!(Top 5 Life-Changing Books) 🚀


1️⃣ Atomic Habits – Build powerful habits and break bad ones!

👉 Get it here: https://amzn.to/4ka28CJ

2️⃣ The Psychology of Money – Master your financial mindset!

👉 Get it here: https://amzn.to/3XiKFOA

3️⃣ Think and Grow Rich – Unlock the secrets to wealth and success!

👉 Buy now: https://amzn.to/4h51HGN

4️⃣ The Power of Your Subconscious Mind – Train your mind for success!

👉 Get it here: https://amzn.to/4idNPuR

5️⃣ Rich Dad Poor Dad – Learn financial lessons the rich teach their kids!

👉 Order here: https://amzn.to/3QzrmNa

Comments

Popular posts from this blog

Introduction to Terraform – The Future of Infrastructure as Code

  Introduction to Terraform – The Future of Infrastructure as Code In today’s fast-paced DevOps world, managing infrastructure manually is outdated . This is where Terraform comes in—a powerful Infrastructure as Code (IaC) tool that allows you to define, provision, and manage cloud infrastructure efficiently . Whether you're working with AWS, Azure, Google Cloud, or on-premises servers , Terraform provides a declarative, automation-first approach to infrastructure deployment. Shape Your Future with AI & Infinite Knowledge...!! Read In-Depth Tech & Self-Improvement Blogs http://www.skyinfinitetech.com Watch Life-Changing Videos on YouTube https://www.youtube.com/@SkyInfinite-Learning Transform Your Skills, Business & Productivity – Join Us Today! In today’s digital-first world, agility and automation are no longer optional—they’re essential. Companies across the globe are rapidly shifting their operations to the cloud to keep up with the pace of innovatio...

📊 Monitoring & Logging in Kubernetes – Tools like Prometheus, Grafana, and Fluentd

  Monitoring & Logging in Kubernetes – Tools like Prometheus, Grafana, and Fluentd Monitoring and logging are essential for maintaining a healthy and well-performing Kubernetes cluster. In this guide, we’ll cover why monitoring is important, key monitoring tools like Prometheus and Grafana, and logging tools like Fluentd to help you gain visibility into your cluster’s performance and logs. Shape Your Future with AI & Infinite Knowledge...!! Want to Generate Text-to-Voice, Images & Videos? http://www.ai.skyinfinitetech.com Read In-Depth Tech & Self-Improvement Blogs http://www.skyinfinitetech.com Watch Life-Changing Videos on YouTube https://www.youtube.com/@SkyInfinite-Learning Transform Your Skills, Business & Productivity – Join Us Today! 🚀 Introduction In today’s fast-paced cloud-native environment, Kubernetes has emerged as the de-facto container orchestration platform. But deploying and managing applications in Kubernetes is just half the ba...

🔒 Kubernetes Security – RBAC, Network Policies, and Secrets Management

  Kubernetes Security – RBAC, Network Policies, and Secrets Management Security is a critical aspect of managing Kubernetes clusters. In this guide, we'll cover essential security mechanisms like Role-Based Access Control (RBAC) , Network Policies , and Secrets Management to help you secure your Kubernetes environment effectively. Shape Your Future with AI & Infinite Knowledge...!! Want to Generate Text-to-Voice, Images & Videos? http://www.ai.skyinfinitetech.com Read In-Depth Tech & Self-Improvement Blogs http://www.skyinfinitetech.com Watch Life-Changing Videos on YouTube https://www.youtube.com/@SkyInfinite-Learning Transform Your Skills, Business & Productivity – Join Us Today! 🚀 Introduction: Why Kubernetes Security Is Non-Negotiable As Kubernetes becomes the backbone of modern cloud-native infrastructure, security is no longer optional—it’s mission-critical . With multiple moving parts like containers, pods, services, nodes, and more, Kuberne...