Rakesh Jain Profile picture
Sep 8 β€’ 23 tweets β€’ 3 min read Twitter logo Read on Twitter
Linux Network Troubleshooting!πŸŒπŸ› οΈ

20 essential Linux network troubleshooting commands, perfect for #DevOps engineers and #Linux admins. A ThreadπŸ‘‡ Image
1/πŸ’‘ ping:
Test network connectivity to a host.

Example:
ping google[dot]com

Explanation:
🌐 Checks if you can reach a remote server.
2/ 🌐 ifconfig/ip addr:
View network interfaces and IP addresses.

Example:
ifconfig or ip addr show

Explanation:
πŸ–₯️ Lists network interfaces and their configurations.
3/πŸ“Š netstat/ss:
Display network statistics.

Example:
netstat -tuln or ss -tuln

Explanation:
πŸ“ˆ Shows active network connections and listening ports.
4/🌐 traceroute/mtr:
Trace the route to a remote host.

Example:
traceroute google[dot]com or mtr google[dot]com

Explanation:
πŸ—ΊοΈ Shows the path packets take to reach a destination.
5/🏹 nslookup/dig:
Query DNS for host information.

Example:
nslookup google[dot]com or dig google[dot]com

Explanation:
🌐 Resolves domain names to IP addresses.
6/ πŸ“Ά ifup/ifdown:
Bring up/down network interfaces.

Example:
sudo ifdown eth0 or sudo ifup eth0

Explanation:
πŸ“΄ Enables or disables network interfaces.
7/ 🚧 iptables:
Configure firewall rules.

Example:
sudo iptables -L or sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Explanation:
πŸ”₯ Manages firewall rules and policies.
8/πŸ•΅οΈ tcpdump:
Capture network packets for analysis.

Example:
sudo tcpdump -i eth0 port 80

Explanation:
πŸ“¦ Sniffs and logs network traffic on a specific interface.
9/🚦 route:
Display or manipulate routing table.

Example:
route -n or sudo route add default gw 192.168.1.1

Explanation:
πŸš— Shows and manages routing information.
10/ πŸ“š arp/ip neigh:
View and manipulate ARP cache.

Example:
arp -n or ip neigh show

Explanation:
πŸ“ Lists ARP table entries, useful for MAC address resolution.
11/ πŸ“Š iftop:
Monitor network bandwidth usage.

Example:
sudo iftop -n

Explanation:
πŸ“ˆ Displays real-time bandwidth usage by network interface.
12/ πŸš€ netcat/nc:
Create network connections.

Example:
nc -vz google[dot]com 80

Explanation:
🌐 Checks if a specific port on a host is open.
13/ 🌐 curl/wget:
Download files from the internet.

Example:
curl -O https://example[dot]com/file[dot]txt or wget https://example[dot]com/file[dot]txt

Explanation:
πŸ“₯ Retrieves files from web servers.
14/ πŸ” ssh:
Securely access remote systems.

Example:
ssh username@hostname

Explanation:
πŸ›‘οΈ Establishes a secure shell connection to a remote server.
15/ πŸ›‘οΈ nmap:
Scan for open ports on a host.

Example:
nmap -p 1-1000 192.168.1.1

Explanation:
πŸšͺ Detects open ports and services on a target system.
16/ πŸ“Š iftop:
Display bandwidth usage by host.

Example:
sudo iftop -n -i eth0

Explanation:
πŸ“ˆ Shows network traffic sorted by source/destination.
17/ πŸš— route:
Manipulate kernel routing table.

Example:
sudo route add -net 192.168.2.0/24 gw 192.168.1.1

Explanation:
🌐 Adds custom routes for network traffic.
18/ πŸ“‘ arping:
Send ARP requests to a host.

Example:
sudo arping -I eth0 192.168.1.2

Explanation:
🌐 Checks if a host is reachable within the local network.
19/ πŸ› οΈ ethtool:
Query and configure network interface settings.

Example:
sudo ethtool eth0

Explanation:
πŸ–₯️ Displays and configures Ethernet adapter properties.
20/ πŸ”„ nmcli:
Manage NetworkManager connections.

Example:
nmcli connection show or nmcli connection up MyConnection

Explanation:
🌐 Interact with NetworkManager for network setup.
Remember to use these commands with caution, and many may require superuser privileges (sudo).

#Linux #Networking #SysAdmin #DevOps πŸ’»πŸŒ
Repost the thread if you find it useful. Thanks!

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Sep 9
Mastering Linux LVM!

A thread with 20 LVM (Logical Volume Manager) commands with explanations and examples πŸ‘‡ Image
1/ #lvcreate: Create a new logical volume.

Example: lvcreate -n mylv -L 10G myvg

Explanation: This command creates a logical volume named "mylv" with a size of 10GB in the volume group "myvg."
2/ #lvdisplay: Display information about logical volumes.

Example: lvdisplay myvg/mylv

Explanation: Shows details about the logical volume "mylv" within the volume group "myvg."
Read 29 tweets
Sep 7
Mastering Docker Commands!

20 Docker commands with explanations - A Thread πŸ‘‡ Image
1/20 🐳 Check Docker version:

docker --version
πŸ“œ Explanation: Check Docker version installed on your system.
2/20 🐳 Download Docker image:

docker pull <image_name>
πŸ“œ Explanation: Download a Docker image from a container registry.
Read 23 tweets
Sep 6
"Getting Started with Git and GitHub: A Thread"

20 step-by-step examples on how to use Git and GitHub for your project πŸ‘‡ Image
1/20: Setting up Git

First, install Git on your local system if you haven't already. Visit https://git-scm[dot]com/downloads and follow the instructions for your OS. #Git #SetUp
2/20: Configure Git

Set your name and email globally for Git:

git config --global "Your Name"
git config --global "youremail@example.com"

#Git #Configurationuser.name
user.email
Read 23 tweets
Sep 4
Simple Examples of 25 Essential Linux Commands for DevOps Pros!" πŸ”πŸš€

A Quick Glance!πŸ‘‡

#DevOps #LinuxCommands πŸ”₯🐧 Image
#1: ssh πŸš€

# Securely access remote servers
ssh user@server
#2: scp/rsync πŸ“

#Copy files and directories between local and remote systems or between remote systems.

scp local_file username@remote_server:/path/to/destination

rsync -avz local_dir/ username@remote_server:/path/to/destination/
Read 28 tweets
Sep 2
Mastering Linux AWK command!

A Powerful Text-Processing Tool!

A Thread with 15 important examples of awk for Linux admins or DevOps EngineersπŸ‘‡ Image
1/4 - What is Awk? 🧡

awk is a powerful text-processing tool and programming language. It's designed for working with structured text data like CSV files, log files, and more.
2/4 - How Does it Work?

Awk operates on a line-by-line basis, reading input data and applying user-defined actions to lines that match specified patterns. This makes it great for filtering, transforming, and extracting data.
Read 31 tweets
Aug 31
SAML vs. AD vs. LDAP!

A Thread πŸ‘‡ Image
1/ Hey, everyone! 🌟 Let's unravel the differences between SAML, AD (Active Directory), and LDAP (Lightweight Directory Access Protocol).

Buckle up for a quick rundown! πŸ”πŸ”’ #SAMLvsADvsLDAP

#Authentication #infosec
2/ πŸ”‘ SAML: Security Assertion Markup Language, a protocol for enabling Single Sign-On (SSO) across web apps.
AD: Active Directory, a Microsoft identity management solution.
LDAP: Lightweight Directory Access Protocol, a protocol for accessing directory services.

#SAMLvsADvsLDAP
Read 17 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(