0% found this document useful (0 votes)
153 views

Sysadmin's Networking Cheat Sheet

This document provides a cheat sheet of common Linux networking utilities and commands for system administrators. It lists tools for verifying connectivity like ping and traceroute, querying DNS with nslookup, connecting to ports with telnet and OpenSSL, analyzing network statistics with netstat, managing network interfaces and connections with nmcli, working with routing tables and firewall rules, and restarting network services. The cheat sheet serves as a quick reference guide for sysadmins to troubleshoot and manage servers and networks.

Uploaded by

Priyansh Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views

Sysadmin's Networking Cheat Sheet

This document provides a cheat sheet of common Linux networking utilities and commands for system administrators. It lists tools for verifying connectivity like ping and traceroute, querying DNS with nslookup, connecting to ports with telnet and OpenSSL, analyzing network statistics with netstat, managing network interfaces and connections with nmcli, working with routing tables and firewall rules, and restarting network services. The cheat sheet serves as a quick reference guide for sysadmins to troubleshoot and manage servers and networks.

Uploaded by

Priyansh Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sysadmin's networking cheat sheet

A sysadmin manages servers and networks. The following utilities and commands are
common Linux tools that make a sysadmin's daily tasks easy.

Ping: verify connectivity between you and a remote system

ping 8.8.8.8 Ping a server at 8.8.8.8 over IPv4

ping6 example.com Ping a server at example.com over IPv6

Traceroute: trace the path from one system to another, including routers in between

traceroute 8.8.8.8 traceroute example.com

Nslookup: query Internet name servers

nslookup example.com Display your DNS server and target IP address

Telnet & OpenSSL: connect to ports and query them for functionality
openssl s_client -starttls smtp \
telnet example.com 110
-connect example.com:587

Netstat: analyze interface, port, protocol statistics, and routing tables

netstat --listening -l List ports in listening mode

netstat --all -a List all ports

netstat --route -r Display routing tables

netstat --interfaces -i Display TX/RX packet statistics for each interface

General

systemctl restart network Restart network service

tcpdump -i eth0 Show live packets from interface eth0

Archit Modi CC BY-SA 4.0 Opensource.com


Sysadmin's networking cheat sheet

Network manager

nmcli device Display network devices

nmcli device show eth0 Show information about eth0 device

nmcli connection Show network connections

nmcli connection up foo Bring connection foo up

nmcli device wifi connect foo Connect to wireless network foo

Routing

ip route Show current routes

route add default gw 10.0.0.1 Add 10.0.0.1 as default gateway to routing table

ip addr show Show your local IP address

ip neighbor show Show neighbors

arp Show neighbors

Firewall

firewall-cmd --get-active-zones List active firewall zones

-–change-interface eth0 --zone=example Place eth0 into example zone

--get-services List all defined services

--add-service samba --zone=example Add samba ports to example zone

--add-port=123/tcp --zone=example Add port 123 to example zone

--permanent Add this flag to make a change persistent

Archit Modi CC BY-SA 4.0 Opensource.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy