Tcp/ip On Linux Flashcards
IP Networking requires
Ip address
Subnet mask
Broadcast address
Ip address has two parts, which are
Network address (the part that talks about what network the device belongs to
Host address, which tells what host the is
Address Class
A. 1-> 127
B. 128 -> 191.255
C. 192.0.0 -> end
Subnet masks in classes are
A. 255.0.0.0
B. 255.255.0.0
C. 255.255.255.0
Determine your ip address
ip address
ifconfig
shows IP addresses in use
host
Device with an ip address
Hostname
An alias for an IP adsress
FQDN (fully qualified domain name
Full domain name
TLD top level domain name
.com .net, ect
Domains
To the left of the TLD
Subdomain
To the left of the domain
hostname cmd
Prints the hostname. hostname -f prints the FQd
To change the hostname entirely
change host config
Host/dig
Use to resolve dns
port
For sepcific services to send and receive data
Ports 1-1023
Preassigned ports
DHCP server
Used to map hosts to ip addresses
ping
Used to test for connectivity to a host
ping -c 3
Sends three pings
traceroute
Tries to translate ip address to dns name
Also helps you determine speed of connection at different points
netstat -n
Displays a numerical list of addresses and ports
netstat -i
Displays a list of network interfaces
netstat -r
Displays the route table
Netstat -p
Displays the PID and program used
netstat -l
Displays the listening socket
netstat -t
Limit to tcp
netstat -u
Limit the output to UDP
tcpdump
Displays packet information
-n for numerical address and ports
-A for text output
-v for verbose mode
-vvv forvery verbose mode