Networking Cheat Sheet – by Codelivly

Listen to this Post

Featured Image
Networking is a fundamental aspect of IT and cybersecurity. Whether you’re troubleshooting connectivity issues or securing a network, understanding key concepts like IP addressing, DNS, subnetting, and protocols (TCP/UDP) is crucial. Below is a comprehensive cheat sheet along with practical commands and steps.

You Should Know:

1. IP Addressing & Subnetting

  • Check your IP (Linux/Windows):
    Linux
    ip a
    ifconfig
    Windows
    ipconfig /all
    
  • Subnet Calculation:
    Calculate subnets using ipcalc (Linux)
    sudo apt install ipcalc
    ipcalc 192.168.1.0/24
    

2. DNS Lookup & Troubleshooting

  • Query DNS Records:
    Linux/Windows
    nslookup example.com
    dig example.com
    
  • Flush DNS Cache:
    Windows
    ipconfig /flushdns
    Linux (systemd-resolved)
    sudo systemd-resolve --flush-caches
    

3. TCP/UDP Port Scanning

  • Scan Open Ports with Nmap:
    nmap -sS -p 1-1000 target_ip
    
  • Check Listening Ports:
    Linux
    netstat -tulnp
    ss -tulnp
    Windows
    netstat -ano
    

4. Gateway & Routing

  • Check Default Gateway:
    Linux/Windows
    route -n
    ip route show
    
  • Add a Static Route:
    Linux
    sudo ip route add 192.168.2.0/24 via 192.168.1.1
    Windows
    route add 192.168.2.0 mask 255.255.255.0 192.168.1.1
    

5. Network Traffic Analysis

  • Capture Packets with Tcpdump:
    sudo tcpdump -i eth0 -n 'port 80'
    
  • Analyze Traffic with Wireshark:
    wireshark -k -i eth0
    

What Undercode Say:

Networking is the backbone of IT infrastructure. Mastering these commands helps in diagnosing issues, securing networks, and optimizing performance. Always verify configurations and monitor traffic to prevent unauthorized access.

Expected Output:

A structured, actionable networking cheat sheet with real-world commands for IT professionals and cybersecurity enthusiasts.

For more details, check the original post: Networking Cheat Sheet – by Codelivly (if available).

References:

Reported By: Https: – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram