NetOps Toolkit

Operations

Linux Network Commands

Essential Linux CLI for connectivity, routing, packet capture, firewalls

Connectivity

ping <host>Test basic connectivity
ping6 <host>Ping over IPv6
traceroute <host>Trace path to destination
mtr <host>Live combined ping + traceroute
nslookup <domain>Query DNS
dig <domain> ANYDetailed DNS query (all records)
host <domain>Quick DNS lookup
curl -I <url>Get HTTP response headers
wget -qO- ifconfig.meGet public IP address

Interfaces & Routing

ip addr showShow all interface IPs
ip link showShow link layer info
ip route showShow routing table
ip neigh showARP/neighbor table
ethtool <intf>NIC details (speed, duplex)
nmcli dev statusNetworkManager device status
ip link set <intf> up/downEnable/disable interface
ip addr add <ip/cidr> dev <intf>Add IP to interface
ip route add <net> via <gw>Add static route

Monitoring & Capture

ss -tulnpShow listening ports + processes
netstat -anAll connections (legacy)
tcpdump -i <intf>Capture packets on interface
tcpdump -i eth0 -c 100 -w capture.pcapCapture 100 packets to file
tcpdump port 53Capture DNS traffic only
tshark -i <intf>Wireshark CLI
iftop -i <intf>Live bandwidth monitor
nmap -sP 192.168.1.0/24Scan subnet for live hosts

Firewall

firewall-cmd --list-allShow firewalld rules
firewall-cmd --get-active-zonesActive zones
iptables -L -n -vList iptables rules
nft list rulesetList nftables rules
ufw status verboseUFW firewall status

File Transfer

scp file user@host:/pathSecure copy over SSH
rsync -avz src/ user@host:/dest/Efficient file sync
sftp user@hostInteractive SFTP session

Cisco Console Access

screen /dev/ttyUSB0 9600Connect via screen (most common)
minicom -D /dev/ttyUSB0 -b 9600Connect via minicom
ls /dev | grep -i usbFind USB serial adapter
Cisco default serial: 9600 baud, 8 data bits, no parity, 1 stop bit, no flow control (9600 8N1)