Networking Flashcards

1
Q

displaying active socket connections

netstat

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

dig

A

dig . ns @8.8.8.8 +short

dig @192.168.188.1 google.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

nmap: network scan

A

nmap -T4 -A -v 192.168.188.0/24

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

latency with ping

A

sudo ping 10.142.0.93 -c 1000 -i 0.010 -l 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CIDR 10.0.0.0/32

A

1 host

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CIDR 10.0.0.0/30

A

4 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CIDR 10.0.0.0/28

A

16 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CIDR 10.0.0.0/24

A

256 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

CIDR 10.0.0.0/22

A

1024 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CIDR 10.0.0.0/20

A

4096 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CIDR 10.0.0.0/18

A

16384 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CIDR 10.0.0.0/16

A

65536 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CIDR 10.0.0.0/12

A

1,048,576 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CIDR 10.0.0.0/10

A

4,194,304 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

CIDR 10.0.0.0/8

A

16,777,216 hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

display network socket related information

list all connections

A

ss

17
Q

display network socket related information

list Listening and Non-listening Ports

A

ss -a

18
Q

display network socket related information

Listing Listening Sockets

A

ss -l

19
Q

display network socket related information

List all TCP Connections

A

ss -t

20
Q

display network socket related information

List all Listening TCP Connections

A

ss -lt

21
Q

display network socket related information

List all UDP Connections

A

ss -ua

22
Q

display network socket related information

List all Listening UDP Connections

A

ss -lu

23
Q
display network socket related information
Display PID (Process IDs) of Sockets
A

ss -p

24
Q

display network socket related information

Display Summary Statistics

A

ss -s

25
Q

display network socket related information

Display IPv4 Socket Connections

A

ss -4

26
Q

display network socket related information

Display IPv6 Socket Connections

A

ss -6

27
Q

display network socket related information

Filter Connections by Port Number

A

ss -at ‘( dport = :22 or sport = :22 )’

mind the space after ‘(

28
Q

display network socket related information

Filter Connections by Protocol

A

ss -at ‘( dport = :ssh or sport = :ssh )’

mind the space after ‘(

29
Q

IPv4 Private Address Space and Filtering

A
  1. 0.0.0/8 IP addresses: 10.0.0.0 – 10.255.255.255
  2. 16.0.0/12 IP addresses: 172.16.0.0 – 172.31.255.255
  3. 168.0.0/16 IP addresses: 192.168.0.0 – 192.168.255.255