Networking Flashcards
displaying active socket connections
netstat
yum install net-tools
Listing all the LISTENING Ports of TCP and UDP connections
netstat -a | more
Listing TCP Ports connections
netstat -at
Listing UDP Ports connections
netstat -au
Listing all LISTENING Connections
netstat -l
Listing all TCP Listening Ports
netstat -lt
Listing all UDP Listening Ports
netstat -lu
Listing all UNIX Listening Ports
netstat -lx
Showing Statistics by Protocol
netstat -s
Showing Statistics by TCP Protocol
netstat -st
Showing Statistics by UDP Protocol
netstat -su
Displaying Service name with PID
netstat -tp
Displaying Promiscuous Mode - refresh screen every five second
netstat -ac 5 | grep tcp
Displaying Kernel IP routing
netstat -r
Showing Network Interface Transactions
netstat -i
Showing Kernel Interface Table
netstat -ie
Displaying IPv4 and IPv6 Information
netstat -g
Print Netstat Information Continuously
netstat -c
Finding non supportive Address
netstat –verbose
Finding Listening Programs
netstat -ap | grep http
Displaying RAW Network Statistics
netstat –statistics –raw
dig
dig . ns @8.8.8.8 +short
dig @192.168.188.1 google.com
nmap: network scan
nmap -T4 -A -v 192.168.188.0/24
latency with ping
sudo ping 10.142.0.93 -c 1000 -i 0.010 -l 2
CIDR 10.0.0.0/32
1 host
CIDR 10.0.0.0/30
4 hosts
CIDR 10.0.0.0/28
16 hosts
CIDR 10.0.0.0/24
256 hosts
CIDR 10.0.0.0/22
1024 hosts
CIDR 10.0.0.0/20
4096 hosts
CIDR 10.0.0.0/18
16384 hosts
CIDR 10.0.0.0/16
65536 hosts
CIDR 10.0.0.0/12
1,048,576 hosts
CIDR 10.0.0.0/10
4,194,304 hosts
CIDR 10.0.0.0/8
16,777,216 hosts